Coloring Line Particles based on Age

I’d like to color line particles based on age (or other values like velocity, etc), but I can’t seem to get the Particle Info node to give me usable values for line particles.

My setup works fine for other particle types like meshes, but when I switch to line particles and apply the material to the emitter they only take the very first value in the ColorRamp (position: 0), so it seems like the particle info node is just spitting out zero values. Multiplying or dividing the value from the node even by large numbers doesn’t seem to change the value.

Any thoughts?