Skip to content

Commit cac4891

Browse files
fix(billing): Add default notification setting for trace metric bytes
Add QUOTA_TRACE_METRIC_BYTES to NOTIFICATION_SETTINGS_TYPE_DEFAULTS so it defaults to ALWAYS, consistent with all other quota notification types. Refs BIL-2216 Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com> Made-with: Cursor
1 parent fd9e89e commit cac4891

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/sentry/notifications/defaults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
NotificationSettingEnum.QUOTA_PROFILE_DURATION_UI: NotificationSettingsOptionEnum.ALWAYS,
2525
NotificationSettingEnum.QUOTA_SEER_BUDGET: NotificationSettingsOptionEnum.ALWAYS,
2626
NotificationSettingEnum.QUOTA_LOG_BYTES: NotificationSettingsOptionEnum.ALWAYS,
27+
NotificationSettingEnum.QUOTA_TRACE_METRIC_BYTES: NotificationSettingsOptionEnum.ALWAYS,
2728
NotificationSettingEnum.QUOTA_SEER_USERS: NotificationSettingsOptionEnum.ALWAYS,
2829
NotificationSettingEnum.QUOTA_SIZE_ANALYSIS: NotificationSettingsOptionEnum.ALWAYS,
2930
NotificationSettingEnum.QUOTA_WARNINGS: NotificationSettingsOptionEnum.ALWAYS,

tests/sentry/notifications/api/endpoints/test_notification_defaults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def test_basic(self) -> None:
3030
"quotaProfileDurationUI": "always",
3131
"quotaSeerBudget": "always",
3232
"quotaLogBytes": "always",
33+
"quotaTraceMetricBytes": "always",
3334
"reports": "always",
3435
"spikeProtection": "always",
3536
"workflow": "subscribe_only",

0 commit comments

Comments
 (0)