Example of adding Baggage to a Trace #4801
Unanswered
daschneider
asked this question in
Q&A
Replies: 1 comment 8 replies
-
You can create a span inside of a scope which has had the baggage added to it, like so:
Then you can add a SpanProcessor to your SdkTracerProvider config which extracts the baggage and appends as span attributes. Here's an example which appends all baggage keys as span attributes:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to add some domain specific baggage values to our traces. I've reviewed the Javadoc and examples and I still don't see how to go about doing this. Can anyone point me to a working example of how to add baggage to a trace?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions