Skip to content

Commit

Permalink
Calling detach at the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Aug 5, 2020
1 parent 79b2994 commit c2cd1d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class ScopeShim(opentracing.Scope):
def __init__(self, manager, span, span_cm=None):
super().__init__(manager, span)
self._span_cm = span_cm
attach(set_value("scope_shim", self))
self._token = attach(set_value("scope_shim", self))

# TODO: Change type of `manager` argument to `opentracing.ScopeManager`? We
# need to get rid of `manager.tracer` for this.
Expand Down

0 comments on commit c2cd1d0

Please sign in to comment.