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

Add span baggage processor #11697

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

SylvainJuge
Copy link
Contributor

@SylvainJuge SylvainJuge commented Jun 28, 2024

Adds baggage processor in contrib to the instrumentation agent.

By default baggage processor does not capture any baggage entry as span attribute, so the usage is opt-in only.

The configuration option is the one from contrib: otel.java.experimental.span-attributes.copy-from-baggage.include.

This depends on the 1.37.0 release of contrib, so this PR has been opened and tested with a local snapshot, this will remain in draft until a new contrib release is available.

To test it locally with the latest contrib snapshot

git clone https://github.com/open-telemetry/opentelemetry-java-contrib ./otel-java-contrib
cd ./otel-java-contrib && ./gradlew publishToMavenLocal && cd -

Fixes #4520 but implementation likely differs from previously open PR #8023

@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Jun 28, 2024
@github-actions github-actions bot requested a review from theletterf June 28, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test native This label can be applied to PRs to trigger them to run native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically append baggage entries to span attributes
1 participant