Best way to create bullet tracers for hitscan weapons?

How were you able to feed data from the particle system to a material?