Issue
When I check the stats page, it looks like spike protection only dropped a small number of errors. My spike was big and I feel that spike protection should have dropped a lot more.
Applies To
- Any Sentry user
- All Sentry plans
Resolution
When the first event reaches our servers and is dropped via Spike Protection, we return a response with the retry_after
header. This prevents the SDK from sending any events at all for a certain amount of time dictated by the header. Since these events are never sent in the first place, they also do not count towards the Spike Protection drop count. The vast majority of your events dropped via Spike Protection will fall into this category.
From your Stats Page, if you click the toggle for "Show client-discarded data", you will see all the events that were not sent as a result of the response from the initial event dropped via Spike Protection. These will have a reason listed as Ratelimit backoff.