elastic / apm-agent-rum-js

https://www.elastic.co/guide/en/apm/agent/rum-js/current/index.html
MIT License
275 stars 131 forks source link

Expose API to get/set tracing headers for custom transactions #468

Open vigneshshanmugam opened 4 years ago

vigneshshanmugam commented 4 years ago

More details

paulb-elastic commented 3 years ago

In the interests of transparency, we’ve discussed this in refinement and we won’t be able to work on this or plan it in right now, whilst the team are focusing on Synthetics.

sebastiendan commented 11 months ago

What's the status of this two years later? I'm looking for a way to manually pass traceparent as header of a frontend->server request within a custom transaction.

sebastiendan commented 11 months ago

Taking inspiration from here and from the traceparent values I was getting with auto-instrumentation, I successfully tested manually setting the traceparent to 00-${span.traceId}-${span.id}-01, with "00" and "01" being the unknown (to me) "version" and "tag" respectively.

Will we get an exposed function to get the right value from the transaction/span?

sebastiendan commented 11 months ago

@vigneshshanmugam Any chance you can share any updates on this?

axelv commented 6 months ago

This is an important feature for us!

Since we're forced to use custom transactions to capture concurrent traces, it's the only way to have distributed tracing.

pgayvallet commented 1 month ago

Any progress on this? this is still a requierement for https://github.com/elastic/kibana/issues/102625

gjelenc commented 3 weeks ago

Also, I'm wondering for progress ?