-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
Description
Problem Statement
I have a project with several DSNs, with different rate limits on those DSNs. When I observe project-wide rate limiting, I want to tune these ratelimits so that they work better. Often, this is more around changing the time window for the ratelimit, vs the actual average limit. For example, changing a 100 per minute rate limit to 500 per 5 minutes.
Today, this is not achievable at the recommended rate limit windows of <1 hour:
- I can get per-key information grouped into 1 day buckets only, by looking at the
/settings/projects/$project/keys/$key/web page which has a graph at the top - I can get per-project information down to the 5m interval on the project stats page, but there is no per-key information
- I can use the
https://us.sentry.io/api/0/projects/$org/$project/keys/$key/stats/?resolution=1h&since=1741542560&until=1744134560to get up to hourly data (which is better than the UI displays), but the API returns an error when passing a value such as "5m", which is what the stats page allows
Solution Brainstorm
- Ideally, allow filtering the stats page by DSN which already supports the needed time range manipulations
- Or, improve the key management page to allow choosing a time window for the visualization, and improve the API to allow time windows that match the rate limiting configs (5minute, 1minute, etc)
- Extend the key stats API to accept the resolution matching the options on rate limiting configs
- this one forces me as the user to write my own visualization, however
Product Area
Unknown
Metadata
Metadata
Assignees
Labels
Projects
Status
No status