Skip to content

Commit 711d7f8

Browse files
committed
Propper booleans
1 parent e9b866c commit 711d7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/tracing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def populate_from_transaction(cls, transaction):
331331
sentry_items["sample_rate"] = str(transaction.sample_rate)
332332

333333
if transaction.sampled is not None:
334-
sentry_items["sampled"] = transaction.sampled
334+
sentry_items["sampled"] = "true" if transaction.sampled else "false"
335335

336336
# there's an existing baggage but it was mutable,
337337
# which is why we are creating this new baggage.

0 commit comments

Comments
 (0)