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 1d36e66 commit a61125eCopy full SHA for a61125e
instana/tracer.py
@@ -40,14 +40,15 @@ def start_span(
40
parent_ctx = references[0].referenced_context
41
42
# Assemble the child ctx
43
- ctx = SpanContext(span_id=generate_id())
+ instana_id = generate_id()
44
+ ctx = SpanContext(span_id=instana_id)
45
if parent_ctx is not None:
46
if parent_ctx._baggage is not None:
47
ctx._baggage = parent_ctx._baggage.copy()
48
ctx.trace_id = parent_ctx.trace_id
49
ctx.sampled = parent_ctx.sampled
50
else:
- ctx.trace_id = generate_id()
51
+ ctx.trace_id = instana_id
52
ctx.sampled = self.sampler.sampled(ctx.trace_id)
53
54
# Tie it all together
0 commit comments