Unity trail effect is not smooth

The gradient applied to the Unity trail effect doesn’t look smooth at the end of the trail.

trail image looks like this

try clamp on the Wrap mode of the texture.

Wrap Mode Select how the Texture behaves when tiled. The default option is Repeat.