Skip to content

fix(api-logs): log snuba throttle_threshold on rate-limited requests#116338

Merged
cvxluo merged 1 commit into
masterfrom
cvxluo/log-snuba-throttle-threshold-on-rate-limited-reque
May 27, 2026
Merged

fix(api-logs): log snuba throttle_threshold on rate-limited requests#116338
cvxluo merged 1 commit into
masterfrom
cvxluo/log-snuba-throttle-threshold-on-rate-limited-reque

Conversation

@cvxluo
Copy link
Copy Markdown
Contributor

@cvxluo cvxluo commented May 27, 2026

Follow up on #116263. Log the throttled threshold when we get a 429 response due to throttling from snuba.

Snuba's quota_allowance summary exposes rejection_threshold under rejected_by but throttle_threshold under throttled_by. We were only plumbing rejection_threshold, so api access logs for throttled-only 429s were missing the threshold value entirely.

Add throttle_threshold to RateLimitExceeded, SnubaRateLimitMeta, and the access log payload as snuba_throttle_threshold, mirroring the existing rejection field.

Co-authored-by: Claude <noreply@anthropic.com>
@cvxluo cvxluo marked this pull request as ready for review May 27, 2026 20:28
@cvxluo cvxluo requested review from a team as code owners May 27, 2026 20:28
@cvxluo cvxluo requested review from a team and removed request for a team May 27, 2026 20:28
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 27, 2026
@cvxluo cvxluo merged commit 38e9856 into master May 27, 2026
85 checks passed
@cvxluo cvxluo deleted the cvxluo/log-snuba-throttle-threshold-on-rate-limited-reque branch May 27, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants