Skip to content

Commit

Permalink
Revert "code (getsentry#6081)"
Browse files Browse the repository at this point in the history
This reverts commit 8a00dca.

Co-authored-by: ellisonmarks <125329741+ellisonmarks@users.noreply.github.com>
  • Loading branch information
getsentry-bot and ellisonmarks committed Jul 3, 2024
1 parent 8a00dca commit ba3e5ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,6 @@ def _get_quota_allowance(
granted_quota = granted_quotas[0]
is_throttled = False
if granted_quota.granted <= 0:
self.metrics.increment(
"bytes_scanned_window_policy_throttle",
tags={"referrer": str(referrer)},
)
is_throttled = True
explanation[
"reason"
Expand Down
3 changes: 0 additions & 3 deletions snuba/web/db_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,6 @@ def _apply_allocation_policies_quota(
_add_quota_info(summary, _THROTTLED_BY, throttle_quota_and_policy)
stats["quota_allowance"]["summary"] = summary

if throttle_quota_and_policy is not None:
metrics.increment("db_query_throttled_query")

if not can_run:
raise AllocationPolicyViolations.from_args(stats["quota_allowance"])
# Before allocation policies were a thing, the query pipeline would apply
Expand Down

0 comments on commit ba3e5ed

Please sign in to comment.