From c0a93602f69a04654a40c4af6ca3a79c190bb2be Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Fri, 31 Jul 2020 15:09:22 -0600 Subject: [PATCH] Use INVALID_SPAN_CONTEXT instead of None --- .../src/opentelemetry/ext/opentracing_shim/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opentelemetry-ext-opentracing-shim/src/opentelemetry/ext/opentracing_shim/__init__.py b/ext/opentelemetry-ext-opentracing-shim/src/opentelemetry/ext/opentracing_shim/__init__.py index 93e7dafef9c..adef3b5c2ed 100644 --- a/ext/opentelemetry-ext-opentracing-shim/src/opentelemetry/ext/opentracing_shim/__init__.py +++ b/ext/opentelemetry-ext-opentracing-shim/src/opentelemetry/ext/opentracing_shim/__init__.py @@ -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(