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

Pass and close scope directly #88

Merged
merged 1 commit into from
Jun 4, 2018

Conversation

pavolloffay
Copy link
Collaborator

Fixes #87

Avoid using ScopeManager.active() as some
tracer implementations return different scope
with invalid scope.close() method.

Signed-off-by: Pavol Loffay [email protected]

Avoid using ScopeManager.active() as some
tracer implementations return different scope
with invalid scope.close() method.

Signed-off-by: Pavol Loffay <[email protected]>
@pavolloffay
Copy link
Collaborator Author

@jmif hi, could you please test this PR if it solves your issue?

Copy link
Contributor

@objectiser objectiser left a comment

Choose a reason for hiding this comment

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

This doesn't feel right - working around the fact that a tracer doesn't implement the spec correctly. This would mean that potentially all instrumentations would need to change.

If there is an issue with the spec/API, then it should be discussed in the OT community and changes applied to the API if appropriate, which should then be implemented in the instrumentations.

@pavolloffay
Copy link
Collaborator Author

Indeed, there are problems with other instrumentations if the tracer does not implement scopes correctly.

API issue is here opentracing/opentracing-java#267. I agree that it's better to manage and pass the scope explicitly in the component where it was created. This change has no impact on functionality, I would like to get it merged anyway.

It would be good that you post your opinion in #88 (review) and/or linked issue to brave-ot.

@pavolloffay pavolloffay merged commit f153e0b into opentracing-contrib:master Jun 4, 2018
@pavolloffay
Copy link
Collaborator Author

@objectiser thanks I have cut a new release 0.1.6

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.

activeSpan being reused
2 participants