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

Return consistent ScopeShim objects #922

Merged
merged 10 commits into from
Aug 5, 2020

Conversation

ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Jul 17, 2020

Fixes #242

@ocelotl ocelotl requested a review from a team July 17, 2020 07:48
@ocelotl ocelotl marked this pull request as draft July 17, 2020 07:49
@ocelotl ocelotl changed the title Issue 242 Return consistent ScopeShim objects Jul 17, 2020
@ocelotl ocelotl marked this pull request as ready for review July 17, 2020 16:24
@ocelotl ocelotl self-assigned this Jul 17, 2020
@ocelotl ocelotl requested a review from codeboten July 17, 2020 16:25
@ocelotl ocelotl force-pushed the issue_242 branch 4 times, most recently from cc27ff2 to 105b78c Compare July 22, 2020 00:12
@ocelotl ocelotl added ext shim OpenTracing or OpenCensus compatibility labels Jul 22, 2020
Copy link
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.

Just a couple of questions, otherwise it looks good.

Copy link
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 addressing my comments.

ocelotl added 8 commits August 5, 2020 11:04
This uses the OpenTelemetry context management mechanism to store a
ScopeShim object in order to make active return the same object as the
one returned by start_active_span.

WIP: there is one failing test case, apparently the context does not get
cleared before running every test case. This seems related to the order
in which test cases are being run.
@codeboten codeboten merged commit 8b1da35 into open-telemetry:master Aug 5, 2020
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this pull request Nov 1, 2020
* chore: 0.6.0 release proposal

* chore: update getting-started version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shim OpenTracing or OpenCensus compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consistently return ScopeShim and SpanShim objects in the OT shim
3 participants