Skip to content

Commit ffd0389

Browse files
xurui-cRachel Chen
andauthored
Remove Sentry warnings and GCP logs for throttled queries (#73549)
Snuba throttles queries in the magnitude of 10k-20k. A [previous PR](#73442) emits a warning to Sentry and logs to GCP for every throttled query, and thus has the potential to overwhelm Sentry/GCP. This PR removes the warnings and logs in case we have an incident. Co-authored-by: Rachel Chen <[email protected]>
1 parent ae2388a commit ffd0389

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/sentry/utils/snuba.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,6 @@ def _bulk_snuba_query(
10691069
"throttled_by" in quota_allowance_summary
10701070
and quota_allowance_summary["throttled_by"]
10711071
):
1072-
logger.warning("Query is throttled", extra={"response.data": response.data})
1073-
sentry_sdk.capture_message("Query is throttled", level="warning")
10741072
metrics.incr("snuba.client.query.throttle", tags={"referrer": query_referrer})
10751073

10761074
if response.status != 200:

0 commit comments

Comments
 (0)