Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Baggage injected via DD_TRACE_HEADER_BAGGAGE is not retrievable via OTEL Baggage API

Open
#10,031 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Start by reproducing the issue with DD_TRACE_HEADER_BAGGAGE and DD_TRACE_OTEL_ENABLED, then inspect the path from the incoming headers to Baggage.current().asMap(). Done means the OTEL Baggage API exposes the same mapped properties as the Datadog internal tracer baggage for the supplied request.

Written by the indexing model from the issue text.

Description

comp: context propagation type: bug report
Tracer Version(s)

1.56.1~b8849a9451

Java Version(s)

21.0.9

JVM Vendor

Eclipse Adoptium / Temurin

Bug Report

Baggage mapped into the trace baggage via DD_TRACE_HEADER_BAGGAGE is not retrievable via OTEL Context.

Expected Behavior

I expect OTEL Baggage to be the same as Datadog Internal Tracer Baggage

Reproduction Code

ENV:

DD_ENV=dev
DD_INTEGRATIONS_ENABLED=true
DD_REMOTE_CONFIGURATION_ENABLED=false
DD_SERVICE=example
DD_SERVICE_NAME=example
DD_TELEMETRY_DEPENDENCY_COLLECTION_ENABLED=false
DD_TRACE_DEBUG=true
DD_TRACE_HEADER_BAGGAGE=comp-business-process-id:company.businessProcessId,comp-business-process-name:company.businessProcessName
DD_TRACE_OTEL_ENABLED=true

HTTP Call with headers:

GET http://localhost:8504/client
comp-business-process-id: this-is-a-bpid-keep-it
comp-business-process-name: this-is-a-bpid-name-keep-it

Retrieving baggas as map should contain the mentioned properties.

Baggage.current().asMap()
Dominant language
Java
Stars
737
Forks
361
Avg merge
3d 20h
Merged PRs (30d)
173

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DataDog/dd-trace-java

All issues in DataDog/dd-trace-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.