Skip to content

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Chen authored and Rachel Chen committed Jul 2, 2024
1 parent f8e1456 commit 4041c52
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ 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": referrer}
)
is_throttled = True
explanation[
"reason"
Expand Down

0 comments on commit 4041c52

Please sign in to comment.