2 ways. First method is:
Every X seconds| Spawn Trail
But as you can see the trail is very smooth so maybe only spawn trail when the object switches direction.
In this case, you would need to manipulate the Trail itself by setting the origin to 0 and then lengthening as the object travels. When the object shifts direction, spawn another trail and discontinue the lengthening of the previous trail.