Quota Management

Data and quotas are interconnected in Sentry. When you subscribe to Sentry, you pay for the amount of data events (errors, replays, and transactions), and attachments to be tracked. Each data category has its own

quotaThe monthly number of events that you pay Sentry to track.
that you can adjust. When Sentry tracks an event or attachment, it counts toward your quota for that type of data.

To see which projects are using up your quota, you can review the "Usage" tab of Stats. This page can be viewed by any member of your organization and can be shared by a team member with Owner or Billing-level permissions with the developers directly responsible for a given project. In addition, you can come back to this page to check if the changes you've made are having the desired effect:

Overview of Usage Stats page

You can also download a project breakdown report in the "Usage History" tab of Settings > Subscriptions (only accessible to Owner and Billing members of your Sentry organization).

Sentry's flexibility means you can exercise fine-grained control over which events and attachments count toward your quota. This page provides you with high-level information about strategies for managing your quota, but you can get more detailed information in:

How to Manage Your Quota

There are a number of things you can do to manage your

quotaThe monthly number of events that you pay Sentry to track.
, as shown in the table below. Actions are listed in order from easiest and fastest, to most challenging and potentially time-consuming. The checkmarks tell you whether the action helps you manage errors, transactions, attachments, or some combination of the three.

The first 5 actions in the list can all be done in sentry.io, while the rest have to be done in an SDK.

ActionErrorsTransactionsAttachments
Check your spike protection is enabled
Adjust your quota
Rate limit your events or attachments
Review repeated events
Filter your events
Update your SDK sample rate
Apply SDK filtering
Update your SDK configuration
Manage data size

What Counts Towards Your Quota

Sentry completes a thorough evaluation of each event to determine if it counts toward your

quotaThe monthly number of events that you pay Sentry to track.
, as outlined in this overview. Detailed documentation for each evaluation is linked throughout.

Before completing any of these evaluations, Sentry confirms that each event includes a valid DSN and project as well as whether the event can be parsed. In addition, for error events, Sentry validates that the event contains valid

fingerprintThe set of characteristics that define an event.
information. If any of these items are missing or incorrect, the event is rejected.

Spike Protection

Sentry’s spike protection prevents huge overages in error events from consuming your event volume, and it's enabled for all accounts by default. You can confirm that spike protection is enabled in Settings > Subscription. Learn more about how spike protection works and how to manage spikes in Manage Your Error Quota.

Adjusting Your Quota

Events and attachments that exceed your

quotaThe monthly number of events that you pay Sentry to track.
will not be accepted, so you may want to increase your quota. Conversely, you might want to decrease your quota or adjust your reserved and on-demand quotas to better control your spending. Learn about adjusting your quota in Manage Your Error Quota, Manage Your Transaction Quota, Manage your Replay Quota, and Manage Your Attachments Quota.

Rate Limits

You can add limits for error events on a per-project basis in [Project] > Settings > Client Keys (DSN). If the event rate limit for a project has been exceeded, and your subscription allows, the event won't be counted. You can also rate limit attachments on an organization level in Settings > Security & Privacy. Learn more in Manage Your Error Quota and Manage Your Attachments Quota.

Event Repetition

In some cases, repeated events can count against your

quotaThe monthly number of events that you pay Sentry to track.
, so it's important to know how event repetition is treated in Sentry. Learn more in Manage Your Error Quota.

Inbound Filters

If an inbound filter is applied for a type of error, transaction, or attachment, and your subscription allows, it won't be counted. You can manage these in [Project] > Settings > Inbound Filters. Learn more in Manage Your Error Quota, Manage Your Transaction Quota, Manage your Replay Quota, and Manage Your Attachments Quota.

SDK Sample Rate

If a sample rate is defined for the SDK, the SDK evaluates whether this event should be sent as a representative fraction of events, effectively limiting the number of errors and transactions you send to Sentry. Setting a sample rate is documented for each SDK, but you can also learn more in Manage Your Error Quota and Manage Your Transaction Quota.

SDK Filtering: beforeSend and beforeSendTransaction

All Sentry SDKs support the beforeSend callback method, which you can use to modify the data of an error event or to drop it completely. Many also support beforeSendTransaction. Learn more in Manage Your Error Quota and Manage Your Transaction Quota.

SDK Configuration

The SDK configuration either allows an event to be sent to Sentry or filters it out. Configuration is documented for each SDK, but you can also learn more in Manage Your Error Quota and Manage Your Transaction Quota.

Size Limits

Sentry imposes limits on various fields within an event, as well as the size of full events and the requests they are sent in, which can affect your attachments

quotaThe monthly number of events that you pay Sentry to track.
. Learn more in Manage Your Attachments Quota.

What Counts Toward Your Quota - Quick Guide

Use this table as a quick reference for what does and doesn't count towards your

quotaThe monthly number of events that you pay Sentry to track.
:

ScenarioYes, this data counts
Spike protection activation threshold has been reached (errors)
Spike protection no longer active (errors)
Your quota hasn't been reached
Your quota has been exceeded
A rate limit for a project has been applied (errors, attachments)
This is a repeated event for which issues were previously set to Delete & Discard (errors)
This is a repeated event for a previously resolved issue (errors)
This is a repeated event for an issue that you've set to Ignore
The event defies inbound filters configured in sentry.io
The event is sent after the SDK sample rate has been exceeded
The event isn't sent based on SDK filters
The event isn't sent based on SDK configuration
Size limits have been exceeded
Issues are created from accepted error and transaction events

Key Terms

Let's clarify a few terms:

  • Event - An event is one instance of you sending data to Sentry, excluding attachments. Generally, this data is an error or a transaction.
  • Error - What counts as an error varies by platform, but in general, if there's something that looks like an exception, it can be captured as an error in Sentry. Sentry automatically captures errors, uncaught exceptions, and unhandled rejections, as well as other types of errors, depending on platform. A grouping of similar errors makes an issue.
  • Transaction - A transaction represents a single instance of a service being called to support an operation you want to measure or track, like a page load. Transaction events are grouped by the transaction name.
  • Replay - Session Replays are video-like reproductions of users’ sessions as they navigate your app or website.
  • Attachment - Attachments are stored additional files, such as config files, log files, or stored mini-dumps, that are related to an error event. Unless the option to store crash reports is enabled, Sentry will use these files only to create an event, and then drop them.
  • Data - Anything you send to Sentry. This includes events (errors or transactions), attachments, and event metadata.
  • Quota - Your
    quotaThe monthly number of events that you pay Sentry to track.
    is the amount of data (errors, transactions, attachments) that you pay Sentry to track.

Next Steps

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").