We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ffbc80 commit e339265Copy full SHA for e339265
instana/tracer.py
@@ -82,7 +82,7 @@ def start_span(self,
82
gid = generate_id()
83
ctx = SpanContext(span_id=gid)
84
if parent_ctx is not None and parent_ctx.trace_id is not None:
85
- if parent_ctx._baggage is not None:
+ if hasattr(parent_ctx, '_baggage') and parent_ctx._baggage is not None:
86
ctx._baggage = parent_ctx._baggage.copy()
87
ctx.trace_id = parent_ctx.trace_id
88
ctx.sampled = parent_ctx.sampled
0 commit comments