Skip to content

feat(sdk-testing): Add W3CBaggagePropagator to test utils #7056

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

Merged

Conversation

edeweerd1A
Copy link
Contributor

Indeed the OpenTelemetryExtension and OpenTelemetryRule are injecting the W3CTraceContextPropagator but not the W3CBaggagePropagator. And the choice is not give in the API to change it after construction.

So adding the baggage propagation right from the start.

Hope this is OK.

@edeweerd1A edeweerd1A requested a review from a team as a code owner January 30, 2025 11:51
Copy link

linux-foundation-easycla bot commented Jan 30, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: edeweerd1A / name: Emile de Weerd (b43d1ea)

@edeweerd1A edeweerd1A force-pushed the propagate-baggage-sdk-testing branch from 279790b to 2e42de1 Compare January 30, 2025 11:53
Indeed the OpenTelemetryExtension and OpenTelemetryRule are injecting the W3CTraceContextPropagator but not the W3CBaggagePropagator.
And the choice is not give in the API to change it after construction.

So adding the baggage propagation right from the start.

Hope this is OK.
@edeweerd1A edeweerd1A force-pushed the propagate-baggage-sdk-testing branch from 2e42de1 to b43d1ea Compare January 30, 2025 11:58
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.96%. Comparing base (8e31bf4) to head (b43d1ea).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #7056   +/-   ##
=========================================
  Coverage     89.95%   89.96%           
- Complexity     6668     6669    +1     
=========================================
  Files           748      748           
  Lines         20105    20113    +8     
  Branches       1970     1970           
=========================================
+ Hits          18085    18094    +9     
  Misses         1427     1427           
+ Partials        593      592    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that baggage and tracecontext represent the default propagator configuration, this makes sense to me.

Maybe one day we'll want to support more customization options for the OpenTelemetry instance which is installed, but we can cross that bridge when we get there.

@jack-berg jack-berg merged commit d16cad3 into open-telemetry:main Feb 7, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants