Skip to content

Commit

Permalink
Use INVALID_SPAN_CONTEXT instead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 31, 2020
1 parent d356708 commit c0a9360
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def start_active_span(

current_span = get_current_span()

if child_of is None and current_span is not None:
if child_of is None and current_span is not INVALID_SPAN_CONTEXT:
child_of = SpanShim(None, None, current_span)

span = self.start_span(
Expand Down

0 comments on commit c0a9360

Please sign in to comment.