Cutting error tracking costs

Last updated:

|Edit this page

We aim to be significantly cheaper than our competitors. In addition to our ridiculously cheap pricing, below are tips to reduce your error tracking costs:

Configure exception autocapture

By default, we capture all unhandled errors and rejections. This can capture more than you need. To reduce which exceptions that are captured, you can configure which types of exceptions are autocaptured in the JS SDK config like this:

JSON
{
"capture_exceptions": {
"capture_unhandled_errors": true,
"capture_unhandled_rejections": true,
"capture_console_errors": false
}
}

Alternatively, you can disable exception autocapture completely in your project settings.

Filtering exceptions clientside

The before_send callback in the JS SDK will drop events if a falsey value is returned. You can provide a before_send function when initializing the PostHog client to exclude any exception events you do not wish to capture client-side.

JavaScript
posthog.init('<ph_project_api_key>', {
before_send: (event) => {
if (event.event === "$exception") {
const exceptionList = event.properties["$exception_list"] || []
const exception = exceptionList.length > 0 ? exceptionList[0] : null;
if (exception && exception["$exception_type"] == "UnwantedError") {
return false
}
}
return event
}
})

Issue suppression

If the exceptions you do not wish to capture are all being grouped under the same issue, you can suppress them so that subsequent exception events will not be ingested. Issues can be suppressed from the list or issue page by changing their status to Suppressed.

Issue suppression status

Quota limiting

Like all PostHog products, you can set a billing limit for error tracking. When a project exceeds this limit, PostHog will no longer capture exception events until your billing period resets.

Questions? Ask Max AI.

It's easier than reading through 635 docs articles.

Community questions

Was this page useful?

Next article

Troubleshooting and FAQs

FAQs How much does error tracking cost? Your first 100,000 $exception events each month are free – i.e. if you never exceed this number, you can use error tracking for free. After this, we charge a small amount for each $exception event you send. The more events you send, the less each event costs. Go to the pricing page to use our calculator to get an estimate. You can also view an estimate on your billing page . Are web workers supported? Yes. Error tracking will work as long as you…

Read next article