We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e9bf78 commit ab4afdbCopy full SHA for ab4afdb
instana/tracer.py
@@ -69,7 +69,10 @@ def start_span(
69
return self.current_span
70
71
def current_context(self):
72
- return self.current_span.context
+ context = None
73
+ if self.current_span:
74
+ context = self.current_span.context
75
+ return context
76
77
def inject(self, span_context, format, carrier):
78
if format in self._propagators:
0 commit comments