Skip to content

Rate limit on a per issue basis #28792

Closed
Closed

Description

@mfbx9da4

Problem Statement

Relatively often we have hit an issue which is firing repeatedly which has flooded our quota rendering sentry useless for a month.

Sometimes because it’s part of a websocket operation which fires very regularly other times it has been because of a recursive issue.

One way to stop the issue from flooding our quota while it is not resolved is to “delete and discard” the issue. Is this a good way of avoiding flooding our quota? Ideally we would just like to rate limit on a per error basis such that the same error should never reach above say 500. Once the issue has been resolved, the count resets and regression events count towards a new per issue rate limit. Is there any way to do this?

Solution Brainstorm

No response

Activity

  1. getsentry-release commented on Sep 23, 2021

    @getsentry-release

    Routing to @getsentry/owners-ingest for triage. ⏲️

  2. jan-auer commented on Sep 24, 2021

    @jan-auer
    Member

    Thank you for the suggestion. This is a similar request to #27884, asking for “issue-based sampling”.

    Let me start by saying that we are aware of this request and do evaluate possible solutions on a regular basis. This is not on our immediate roadmap, so unfortunately we cannot share a timeline or offer a compromise at this point. I’m going to +1 this internally.

    #27884 (comment) contains an explanation for the challenges involved. In short, to determine which Issue an event belongs to, Sentry must fully process it and then run a grouping algorithm. This defeats the purpose of rate limiting, which is supposed to prevent exactly that for events that are being dropped later.

    Delete and Discard of course came with the same challenge when we introduced it. As Sentry is scaling to larger use cases, we are re-evaluating D&D, and will eventually super-seed it with issue-based sampling.

  3. self-assigned this
    on Sep 24, 2021
  4. mfbx9da4 commented on Sep 24, 2021

    @mfbx9da4
    Author

    Thanks for your response!

    Quick question: if I delete an event (without clicking discard future events) will future events count towards the quota? If they do still count, is there anyway I can go back and re-delete the event and also discard future events?

  5. jan-auer commented on Oct 5, 2021

    @jan-auer
    Member

    If you delete an Issue without clicking "discard future events", then future events will create a new Issue and count towards quota. You can then click "delete and discard" on that new Issue.

  6. mfbx9da4 commented on Oct 5, 2021

    @mfbx9da4
    Author

    That's great thank you! Shame there is no way to programmatically delete and discard.

  7. removed their assignment
    on Jan 18, 2023
  8. jernejstrasner commented on Mar 30, 2023

    @jernejstrasner
    Contributor

    Closing due to inactivity.

  9. locked and limited conversation to collaborators on Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions