Skip to content

Commit e9b866c

Browse files
committed
Add sampling decision of transation into dsc
1 parent 994a45b commit e9b866c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sentry_sdk/tracing_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ def populate_from_transaction(cls, transaction):
330330
if transaction.sample_rate is not None:
331331
sentry_items["sample_rate"] = str(transaction.sample_rate)
332332

333+
if transaction.sampled is not None:
334+
sentry_items["sampled"] = transaction.sampled
335+
333336
# there's an existing baggage but it was mutable,
334337
# which is why we are creating this new baggage.
335338
# However, if by chance the user put some sentry items in there, give them precedence.

0 commit comments

Comments
 (0)