Skip to content

Commit

Permalink
Revert return crterium
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 27, 2020
1 parent b69782c commit 2565ab0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def inject(
) -> None:
span = trace.get_current_span(context=context)

if span is None:
if span.get_context() == trace.INVALID_SPAN_CONTEXT:
return

sampled = (trace.TraceFlags.SAMPLED & span.context.trace_flags) != 0
Expand Down

0 comments on commit 2565ab0

Please sign in to comment.