How to enable spike protection in Sentry

Turn on spike protection in Sentry so a sudden burst of events cannot use up your quota. Open Settings, pick Spike Protection and switch the project toggle on.

Quick answer

To enable spike protection in Sentry, open Settings from the left navigation, choose Spike Protection under Usage & Billing, and switch on the toggle next to your project. Each project has its own toggle, so repeat it for every project you want covered, or use Enable All to switch every project on at once.

Steps at a glance

  1. Click Settings in the left navigation.
  2. Choose Spike Protection under Usage & Billing.
  3. Find your project in the Projects list.
  4. Switch the project toggle on.
  5. Confirm the toggle shows as enabled.

Interactive demo

Loading demo…

Summary

Spike protection sets an event threshold for each project based on its history. When a project passes that threshold, Sentry drops the extra events so a sudden burst cannot use up your quota. You control it per project from one settings page.

Step-by-step guide

  1. Step 1

    Open Settings

    From any page such as the issue feed, click Settings in the left navigation. This opens the settings area with its own sidebar of sections.

  2. Step 2

    Open Spike Protection

    In the settings sidebar, scroll to Usage & Billing and click Spike Protection. The page lists every project in your organization.

  3. Step 3

    Turn spike protection off for javascript

    Find javascript in the Projects list. The toggle at the start of its row is on when it shows a check mark. Click it to switch protection off, which shows what the disabled state looks like.

  4. Step 4

    Turn spike protection back on

    Click the same toggle again. The change saves as soon as you click, so there is no separate save button. To switch every project at once, use Enable All at the top of the page.

  5. Step 5

    Confirm the toggle is on

    Check that the toggle next to javascript shows a check mark again. Spike protection is now active for that project.

Why this matters

You ship a release and a loop starts throwing the same error thousands of times a minute. Without protection, that burst can use your whole monthly event quota. With it on, Sentry caps the flood and your quota is kept for real issues.

Frequently asked questions

  • Is spike protection set per project?

    Yes. Each project has its own toggle in the Projects list, and the page also has Disable All and Enable All buttons for changing every project at once.

  • Do I need to save after switching the toggle?

    No. The toggle changes when you click it and the page has no save button.

Create interactive demos like this one — free, no coding required.

Start for free →