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

[opentracer] Activate span context on extract #608

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

Kyle-Verhoog
Copy link
Member

Fixes an oversight on my part: when spans are propagated the datadog tracer expects the use of a propagator to manually call tracer.context_provider.activate. This is not done by the opentracer. As such the context is not activated and any subsequent spans created will not inherit from the propagated context.

I was able to replicate #606 and to create a test to cover this logic.

Fixes #606.

Copy link

@raybotha raybotha left a comment

Choose a reason for hiding this comment

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

Good stuff, this fix is working

Copy link
Member

@labbati labbati left a comment

Choose a reason for hiding this comment

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

Looks good to me! 👍

@Kyle-Verhoog Kyle-Verhoog merged commit e378e27 into master Sep 19, 2018
@Kyle-Verhoog Kyle-Verhoog deleted the kyle-verhoog/ot-dist-fix branch September 19, 2018 16:26
@Kyle-Verhoog Kyle-Verhoog added this to the 0.15.0 milestone Sep 19, 2018
@labbati labbati modified the milestones: 0.15.0, 0.14.1 Sep 25, 2018
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.

None yet

3 participants