-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ddm): Implement global abuse limits for metrics #64574
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #64574 +/- ##
==========================================
- Coverage 81.36% 81.30% -0.07%
==========================================
Files 5236 5245 +9
Lines 231130 232306 +1176
Branches 45348 45535 +187
==========================================
+ Hits 188058 188869 +811
- Misses 37220 37577 +357
- Partials 5852 5860 +8
|
assert quotas[5].scope == QuotaScope.GLOBAL | ||
assert quotas[5].scope_id is None | ||
assert quotas[5].categories == {DataCategory.METRIC_BUCKET} | ||
assert quotas[5].limit == 6040 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this number coming from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above here I set the limit to 604.
self.organization.update_option("global-abuse-quota.metric-bucket-limit", 604)
since the abuse_window is 10 seconds its multiplied by 10
Implements global abuse limit for metric buckets.
Relay: getsentry/relay#2928
Epic: getsentry/relay#2716