Skip to content

Commit 1938a78

Browse files
committed
ref: Add sampling decision to Span repr
1 parent de516ee commit 1938a78

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

sentry_sdk/tracing.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,16 @@ def __init__(
6767
self.timestamp = None
6868

6969
def __repr__(self):
70-
return "<%s(transaction=%r, trace_id=%r, span_id=%r, parent_span_id=%r)>" % (
71-
self.__class__.__name__,
72-
self.transaction,
73-
self.trace_id,
74-
self.span_id,
75-
self.parent_span_id,
70+
return (
71+
"<%s(transaction=%r, trace_id=%r, span_id=%r, parent_span_id=%r, sampled=%r)>"
72+
% (
73+
self.__class__.__name__,
74+
self.transaction,
75+
self.trace_id,
76+
self.span_id,
77+
self.parent_span_id,
78+
self.sampled,
79+
)
7680
)
7781

7882
@classmethod

0 commit comments

Comments
 (0)