Skip to content

Feature Request: OpenTelemetry: Support Baggage in OtelContext #6087

@Xyaren

Description

@Xyaren

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions