Skip to content

More granular per-DSN drop rate data visualization #91279

@JParisFerrer

Description

@JParisFerrer

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:

  1. 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
  2. I can get per-project information down to the 5m interval on the project stats page, but there is no per-key information
  3. I can use the https://us.sentry.io/api/0/projects/$org/$project/keys/$key/stats/?resolution=1h&since=1741542560&until=1744134560 to 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

  1. Ideally, allow filtering the stats page by DSN which already supports the needed time range manipulations
  2. 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)
  3. 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

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions