Skip to content

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

Merged
jack-berg merged 1 commit intoopen-telemetry:mainfrom
edeweerd1A:propagate-baggage-sdk-testing
Feb 7, 2025
Merged

feat(sdk-testing): Add W3CBaggagePropagator to test utils#7056
jack-berg merged 1 commit intoopen-telemetry:mainfrom
edeweerd1A:propagate-baggage-sdk-testing

Conversation

@edeweerd1A
Copy link
Copy Markdown
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
@linux-foundation-easycla
Copy link
Copy Markdown

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
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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
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