Skip to content
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

Feature Request: OpenTelemetry: Support Baggage in OtelContext #6087

Open
Xyaren opened this issue Oct 23, 2023 · 1 comment
Open

Feature Request: OpenTelemetry: Support Baggage in OtelContext #6087

Xyaren opened this issue Oct 23, 2023 · 1 comment
Labels

Comments

@Xyaren
Copy link
Contributor

Xyaren commented Oct 23, 2023

Currently when OtelContext.with or OtelContext.get is called with context key opentelemetry-baggage-key (defined in io.opentelemetry.api.baggage.BaggageContextKey#KEY)
null is returned.

Setup:
Java agent running with DD_TRACE_OTEL_ENABLED=true

This key seems to be used by otel to set or get an instance of io.opentelemetry.api.baggage.Baggage.
In order to be able to use baggage with open-telemetry this context key needs to be handled.

@PerfectSlayer
Copy link
Contributor

Hello @Xyaren 👋

Thanks for reaching us.

We currently don't support baggage with our OTel instrumentation.
It is mainly due to the lack of support for the Context lifecycle.
So even if you were able to store baggage, you won't retrieve any meaningful value when needed.

It is identified as a compatibility issue on our OTel support roadmap though.
We really appreciate if you can open a feature request on our support page so we can make sure to keep track of it, and our support team will be able to learn more about you and your context.
Don't hesitate to link this issue as reference.

Best,
Bruce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants