Skip to main content

What are some ways I can control the event volume for my organisation?

Issue

I want do to avoid depleting my subscription quotas too fast.

Applies To

  • All Customers

  • Quota Management

Resolution

There are several strategies you can use to help ensure you’re seeing relevant events without quickly exhausting your quota:

  • Within the SDK you can reduce the data volume you’re sending. All SDKs provide some mechanism to override if an event should send. Please consult the documentation for your SDK for more information on how to configure this. Use the beforeSend function (or its equivalent in your SDK) as a specific example of such a mechanism to filter out known, non-actionable, or bursty errors before they are sent to Sentry.

    • Use the beforeSendLog function (or its equivalent) to filter or redact low-value logs before they are sent to Sentry. This is particularly useful for managing log noise and ensuring only relevant logs are ingested.

  • Turn on inbound data filters for legacy browsers, browser extensions, localhost, and web crawlers. Any filtered events will not count towards your quota. This ensures that events are dropped earlier in the pipeline, preventing them from being counted toward DSN rate limits.

    • Add specific error messages or IP addresses to inbound filters to block known sources of noise. This provides an additional layer of control over the events ingested.

  • Set DSN-Level Rate Limits: Configure rate limits to cap the number of events a key can send within a defined period. This helps control event ingestion and prevents overages.- Adjust Sampling Rates: Configure the sampleRate option (and related settings) to control the proportion of events sent to Sentry. This allows you to reduce the overall volume of events while preserving the most critical data.

  • Create Metric Alerts: Set up alerts to notify you when event volume exceeds a predefined threshold, allowing you to take timely action. For example, you can set up a rule to notify you if an error occurs more than a specified number of times within an hour.

  • Use Delete and Discard Rules: Stop noisy issues from counting against your quota by discarding or deleting them. This is particularly useful for managing recurring issues.

  • Rotate DSN Keys: Invalidate the current DSN to reduce exposure and prevent further noise from public DSNs.

  • Delete and Discard is only available on Business Plans.

Our doc here on Quota Management methods goes into further details.

Did this answer your question?