Skip to content

Commit 751cd69

Browse files
committed
.
1 parent d6f1178 commit 751cd69

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

sentry_sdk/traces.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,14 @@ def start_timestamp(self) -> "Optional[datetime]":
747747
def end_timestamp(self) -> "Optional[datetime]":
748748
return None
749749

750+
def _get_trace_context(self) -> "dict[str, Any]":
751+
return {
752+
"trace_id": self.trace_id,
753+
"span_id": self.span_id,
754+
"parent_span_id": self._parent_span_id,
755+
"dynamic_sampling_context": self._dynamic_sampling_context(),
756+
}
757+
750758

751759
if TYPE_CHECKING:
752760

0 commit comments

Comments
 (0)