Skip to content

Added B3 multi-header propagator#1823

Merged
lzchen merged 5 commits intoopen-telemetry:mainfrom
owais:b3-multi-propagator
May 11, 2021
Merged

Added B3 multi-header propagator#1823
lzchen merged 5 commits intoopen-telemetry:mainfrom
owais:b3-multi-propagator

Conversation

@owais
Copy link
Copy Markdown
Contributor

@owais owais commented May 6, 2021

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #1821

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Added new tests

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@owais owais force-pushed the b3-multi-propagator branch 6 times, most recently from a0a7769 to be336dc Compare May 6, 2021 18:12
@owais owais marked this pull request as ready for review May 6, 2021 18:20
@owais owais requested review from a team, codeboten and lzchen and removed request for a team May 6, 2021 18:20
@owais owais force-pushed the b3-multi-propagator branch from be336dc to e7010af Compare May 6, 2021 18:21
@owais owais marked this pull request as draft May 6, 2021 18:22
@owais owais marked this pull request as ready for review May 6, 2021 18:23
Copy link
Copy Markdown
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

from opentelemetry.propagators.textmap import DefaultGetter

FORMAT = b3_format.B3Format()
B3_SINGLE = B3SingleFormat()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: these variables are both only used once, not sure they're worth having.

@owais owais force-pushed the b3-multi-propagator branch 2 times, most recently from 3eccb3e to 9ee10fb Compare May 8, 2021 10:05
- Added B3MultiFormat and B3SingleFormat propagators.
- B3Format is now deprecated and an alias to B3MultiFormat propagator.
- Fixed `b3` entrypoint to point to `B3SingleFormat`.
- Added `b3multi` entrypoint to point to `B3MultiFormat`.
@owais owais force-pushed the b3-multi-propagator branch from 9ee10fb to 1b70f4e Compare May 8, 2021 22:42
@owais owais requested a review from codeboten May 11, 2021 02:12
@lzchen lzchen merged commit d75fb17 into open-telemetry:main May 11, 2021
@owais owais deleted the b3-multi-propagator branch May 11, 2021 17:45
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.

B3 propagator package does not confirm to spec.

3 participants