Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Commit 4ce68c2

Browse files
committed
Fixes compatibility with basictracer's SpanContext
opentracing/basictracer-python removed Context.parent_id opentracing/basictracer-python@343ee8e this patch gets the parent_id from basictracer's Span
1 parent 0192d7f commit 4ce68c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎python/appdash/recorder.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def record_span(self, span):
2020
span_id = SpanID()
2121
span_id.trace = span.context.trace_id
2222
span_id.span = span.context.span_id
23-
if span.context.parent_id is not None:
24-
span_id.parent = span.context.parent_id
23+
if span.parent_id is not None:
24+
span_id.parent = span.parent_id
2525

2626
self._collector.collect(span_id,
2727
*event.MarshalEvent(event.SpanNameEvent(span.operation_name)))

0 commit comments

Comments
 (0)