Replies: 1 comment 5 replies
-
There's no support for baggage in this crate. However, from my understanding, you cannot change a span's context in OpenTelemetry which includes adding baggage. There is a context when you create the span and it is immutable so I think that the closest thing to that is what you're doing except that you actually create a new span:
But maybe I'm misunderstanding the otel spec. |
Beta Was this translation helpful? Give feedback.
5 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.
-
Hi,
I'm struggling to find a way to set OpenTelemetry baggage.
BaggageExt trait let's me create a new Context with an updated baggage, but I haven't found a way to attach the Context to the current span. I can use
set_parent
to update the parent span context, but I haven't found a way to get the original parent context.The following code almost works (it sets the baggage), but it makes a span reference itself as a parent, which is also wrong.
Do I miss something, or is it just not supported yet?
Beta Was this translation helpful? Give feedback.
All reactions