Highly Custom Distributed Tracing?

Hi Brandon

Thanks for trying out Elastic APM :slight_smile:

The Node.js agent will automatically continue a distributed trace if it's coming in over HTTP/HTTPS. For all other protocols, such as WebSocket, you need to manually encode and decode the metadata needed to continue the trace when sending data between services.

Check out this answer for more details on how to do this:

If you have any other questions, don't hesitate to ask!

Best,
Thomas