Skip to content

Commit ba0478e

Browse files
committed
fix span_id
1 parent 014e2cc commit ba0478e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry_sdk/traces.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class StreamedSpan:
7474
__slots__ = (
7575
"_name",
7676
"_attributes",
77+
"_span_id",
7778
"_trace_id",
7879
"_status",
7980
"_flags",
@@ -92,7 +93,8 @@ def __init__(
9293
for attribute, value in attributes.items():
9394
self.set_attribute(attribute, value)
9495

95-
self._trace_id = trace_id
96+
self._span_id: "Optional[str]" = None
97+
self._trace_id: "Optional[str]" = trace_id
9698

9799
self.set_status(SpanStatus.OK)
98100
self.set_source(SegmentSource.CUSTOM)

0 commit comments

Comments
 (0)