Skip to content

OpenTelemetry baggage dropped across Slick AsyncExecutor (span propagates, baggage does not) #11758

Description

@henry-macarthur

Library Name

Slick

Library Version(s)

3.2

Describe the feature you'd like

I'd like to capture and restore the full Context in SlickRunnableInstrumentation. Right now it only stores the span ((https://github.com/DataDog/dd-trace-java/blob/v1.59.0/dd-java-agent/instrumentation/slick-3.2/src/main/java/datadog/trace/instrumentation/slick/SlickRunnableInstrumentation.java), so anything else attached to the context(notably OTel baggage) is dropped across a Slick action.

It appears as though AdviceUtils.capture() only stores Span. Since Baggage is a separate keys in datadog.context.Context, it gets dropped at this boundary.

Is your feature request related to a problem?

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions