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

Move propagators to sdk::propagation module #266

Merged
merged 4 commits into from
Oct 13, 2020
Merged

Conversation

jtescher
Copy link
Member

Currently the propagation modules are mixed in a confusing way (e.g. baggage propagator is in api, but trace context is in sdk). This change standardizes the propagator locations by having propagation formats in api::propagation (only text map currently), keeps global propagation utilities in global::propagation, and moves propagator implementations to sdk::propagation.

High level changes:

  • Move propagators from sdk::trace::propagator to sdk::propagation
  • Rename TextMapFormat to TextMapPropagator to match the spec.
  • Rename W3CPropagator back to TraceContextPropagator to match the spec and because the baggage propagator is also a w3c propagator.
  • Remove TextMapFormat from examples because they should be setting/getting the global so they interact properly with middleware.

@jtescher jtescher requested a review from a team October 12, 2020 21:01
Copy link

@awiede awiede left a comment

Choose a reason for hiding this comment

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

LGTM

@jtescher jtescher merged commit 9ff9ea1 into master Oct 13, 2020
@jtescher jtescher deleted the extract-propagators branch October 13, 2020 16:40
@wperron wperron mentioned this pull request Apr 5, 2023
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