Skip to content

Commit e6d22ef

Browse files
authored
feat(relay): Add option to drop transaction attachments (#84069)
Register the new option and forward it to Relay.
1 parent 15f8c17 commit e6d22ef

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/sentry/options/defaults.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,14 @@
530530
flags=FLAG_ALLOW_EMPTY | FLAG_AUTOMATOR_MODIFIABLE,
531531
)
532532

533+
# Drop attachments in transaction envelopes in Relay.
534+
register(
535+
"relay.drop-transaction-attachments",
536+
type=Bool,
537+
default=False,
538+
flags=FLAG_ALLOW_EMPTY | FLAG_AUTOMATOR_MODIFIABLE,
539+
)
540+
533541
# Analytics
534542
register("analytics.backend", default="noop", flags=FLAG_NOSTORE)
535543
register("analytics.options", default={}, flags=FLAG_NOSTORE)

src/sentry/relay/globalconfig.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"relay.metric-stats.rollout-rate",
2424
"relay.span-extraction.sample-rate",
2525
"relay.span-normalization.allowed_hosts",
26+
"relay.drop-transaction-attachments",
2627
]
2728

2829

0 commit comments

Comments
 (0)