Skip to content

What information can be handled by a custom propagator in the OtelAgent? #13341

Answered by laurit
shinozakisatoshi11 asked this question in Q&A
Discussion options

You must be logged in to vote

I would advice you against attempting this unless you really understand what you are doing as otherwise you'll end up just wasting a bunch of time. There isn't anything in the propagator that would prevent you from using something from the request path instead of a header. The actual access to the carrier is implemented in TextMapGetter so if you wish to use something else besides headers you'd need to replace the TextMapGetter implementation which mean you'd need to replace the instrumentations that the agent uses with your own instrumentations. So if you wish to read trace id from incoming request path you'd firstly need an instrumentation that exposes that information. Inside your Text…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shinozakisatoshi11
Comment options

@laurit
Comment options

Answer selected by shinozakisatoshi11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants