-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
put baggage as Span attribute #5320
Comments
Take a look at the W3CBaggagePropagator. It will put baggage into the Context, and that can be seen in a SpanProcessor implementation. |
@whughchen also check out open-telemetry/opentelemetry-java-instrumentation#8023 |
the problem is that in SpanProcessor.onStart() method baggage is empty(haven't generated/propagated yet), and SimpleSpanProcessor.onEnd() method no context provided. |
Well, there are several things here, so let's keep them separate:
Have you been able to do any of these three things successfully? Do you have some working code you can share with what you're trying? |
This issue was marked stale due to lack of author feedback. It will be closed in 7 days. |
Closed as inactive. Feel free to reopen if this issue is still being worked on. |
@flodetan were you able to find a solution for this? |
|
Is your feature request related to a problem? Please describe.
Yes, I didn't find anywhere to put baggage as Span attribute
Describe the solution you'd like
My opentelemetry-java have
tracecparent
andbaggage
propagation, span data was export byotlp
exporter.I have some information propagated through baggage, I want to put baggage to Span attribute to make information be visible in jaeger UI. How can i implement this feature ?
Describe alternatives you've considered
PS : I already tried in SimpleSpanProcessor.onStart() but baggage is empty(not generated yet), and SimpleSpanProcessor.onEnd() but no
context
provided.Also tried in w3cTraceContextPropagator and w3cBaggagePropagator, i can get baggage from
context
, but it doesn't provide dataobject to set baggage.Additional context
The text was updated successfully, but these errors were encountered: