This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix __exit__ method of Scope class (#120)
Technically, a scope could contain None as a span, but on exit it calls _on_error on a span with no check. Currently, this issue affects opentracing_instrumentation library: https://travis-ci.org/uber-common/opentracing-python-instrumentation/jobs/525712144#L530-L616 These changes: - Make the _on_error method static - Add a check for a span to the _on_error method
- Loading branch information
1 parent
946f763
commit 35a7bc9
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters