Last updated 26 November 2026. By Paul Badarau.
A fictional recipe blog runs a third-party ad script, and its visitors run all kinds of browser extensions. After a month, most of its open issues have frames only in https://ads.example/tag.js or in extension files, and a video that cannot autoplay throws NotAllowedError on every phone. The blog's author cannot fix any of them, and they push the real bugs down the list.
The fix goes in Sentry.init, because the SDK decides what is sent:
Sentry.init({ dsn: BLOG_DSN, allowUrls: ['recipes.example'], ignoreErrors: ['NotAllowedError'] })
allowUrlschecks the file named by the last stack frame that has one. The error is kept only when that address matches. An error with no file name is still sent, which covers some extension errors.ignoreErrorsdrops errors whose message matches a string or pattern. The SDK already ignores a few common ones by default, such asScript error.from cross-origin scripts.beforeSendruns on every error just before it is sent. Returnnullto drop it, for any rule the two options above cannot express.- A custom fingerprint merges variants into one issue. A call such as
Sentry.captureException(err, { fingerprint: ['payment-timeout'] })puts every payment timeout in a single issue, whatever its message.
Some of the clutter needs no setting. The Errors list shows only issues with events in the period you pick, so an error that stopped last week drops off the 24-hour view. Issues are grouped by level, most severe first, and you can filter by level or search titles. A known issue that keeps firing does not send another email. Filtering in the SDK also saves your allowance, because every stored error counts toward the 10,000 Monitoring events in the Standard Plan, and a dropped one does not.
A filtered error never reaches Monitoring, so there is nothing to look at later. If the throw is inside the ad script, allowUrls hides that too. The SDK still reports how many events beforeSend dropped, and Setup lists those counts under Not stored in the last 7 days, so check them after you add a rule. Every rule also needs a deploy to take effect.
The product page for this is Monitoring.