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

remove X-B3-ParentSpanId for B3 propagator as per OpenTelemetry Specification #2237

Merged

Conversation

JamesJHPark
Copy link
Contributor

@JamesJHPark JamesJHPark commented Oct 25, 2021

This PR is to remove X-B3-ParentSpanId for B3 propagator as per B3 Requirements in OpenTelemetry Specification Propagators API:

MUST NOT propagate X-B3-ParentSpanId as OpenTelemetry does not support reusing the same id for both sides of a request.

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 #2231

Type of change

  • Bug fix (non-breaking change which fixes an issue)

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

  • tox tests

Does This PR Require a Contrib Repo Change?

Answer the following question based on these examples of changes that would require a Contrib Repo Change:

  • The OTel specification has changed which prompted this PR to update the method interfaces of opentelemetry-api/ or opentelemetry-sdk/

  • The method interfaces of test/util have changed

  • Scripts in scripts/ that were copied over to the Contrib repo have changed

  • Configuration files that were copied over to the Contrib repo have changed (when consistency between repositories is applicable) such as in

    • pyproject.toml
    • isort.cfg
    • .flake8
  • When a new .github/CODEOWNER is added

  • Major changes to project information, such as in:

    • README.md
    • CONTRIBUTING.md
  • No.

Checklist:

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

@JamesJHPark JamesJHPark requested a review from a team October 25, 2021 15:48
@JamesJHPark JamesJHPark changed the title Otel spec b3 propagator b3 parent span remove X-B3-ParentSpanId for B3 propagator as per OpenTelemetry Specification Oct 25, 2021
Copy link
Contributor

@owais owais left a comment

Choose a reason for hiding this comment

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

Thanks. Should be removed from B3SingleFormat as well

@owais owais merged commit 2109633 into open-telemetry:main Oct 26, 2021
aabmass added a commit that referenced this pull request Oct 29, 2021
* updating changelogs and version to 1.6.1-0.25b1 (#2223)

* default value is invalid, was renamed (#2226)

* Website: support GH page links to canonical src, and aliases (#2224)

* Fix opentracing shim references (#2180)

* Prepare release v1.6.2 and 0.25b2 (#2230)

* update changelog to note the rename of entrypoints in 1.6.0 (#2228)

* add note about proto version to README.rst (#2232)

* ReadableSpan events and links now return a tuple (#2215)

* ReadableSpan events and links now return a tuple

Removed MappingProxy since events and links are not mappings

Signed-off-by: Ted Kern <tkern@arnatious.com>

* fix lint

Signed-off-by: Ted Kern <tkern@arnatious.com>

* fix lint

* fix lint

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>

* adding CI testing for python 3.10 (#2207)

* remove `X-B3-ParentSpanId` for B3 propagator as per OpenTelemetry Specification (#2237)

* remove X-B3-ParentSpanId for B3 propagator as per OpenTelemetry specification

* revert changes - run tests

* re-commit changes

* add entry to CHANGELOG

* remove ParentSpanId in B3SingleFormat

* Remove lingering distro pkg files (#2241)

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: alrex <aboten@lightstep.com>
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
Co-authored-by: Ben Roberts <robertsben@users.noreply.github.com>
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
Co-authored-by: Ted Kern <tkern@arnatious.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: James <45812677+JamesJHPark@users.noreply.github.com>
Co-authored-by: (Eliseo) Nathaniel Ruiz Nowell <nathanielruiz98@gmail.com>
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.

Otel Spec forbids B3 propagator from propagating X-B3-ParentSpanId
4 participants