Skip to content

Commit ac06222

Browse files
constantiniusjerryzhou196
authored andcommitted
fix(snuba): add missing api.metrics.totals.second_query to Referrer enum (#104155)
Fixing this particular issue: ``` Traceback (most recent call last): File "/usr/src/sentry/src/sentry/snuba/referrer.py", line 964, in validate_referrer raise Exception(error_message) Exception: referrer api.metrics.totals.second_query is not part of Referrer Enum ``` Closes https://linear.app/getsentry/issue/TET-1522/snuba-queries-raising-warning
1 parent c4dd0b7 commit ac06222

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sentry/snuba/referrer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,9 @@ class Referrer(StrEnum):
419419
API_ISSUES_RELATED_ISSUES = "api.issues.related_issues"
420420
API_METRICS_TOTALS = "api.metrics.totals"
421421
API_METRICS_TOTALS_INITIAL_QUERY = "api.metrics.totals.initial_query"
422+
API_METRICS_TOTALS_SECOND_QUERY = "api.metrics.totals.second_query"
423+
API_METRICS_SERIES_SECOND_QUERY = "api.metrics.series.second_query"
424+
422425
API_ORGANIZATION_TRACE_ITEM_DETAILS = "api.organization-trace-item-details"
423426
API_ORGANIZATION_EVENT_STATS_FIND_TOPN = "api.organization-event-stats.find-topn"
424427
API_ORGANIZATION_EVENT_STATS_METRICS_ENHANCED = "api.organization-event-stats.metrics-enhanced"

0 commit comments

Comments
 (0)