Skip to content

Overview ​

The same error is easily captured twice in a row — a loop throwing on every iteration, or your own captureException() call in a catch that then re-throws to the global handler.

dedupeIntegration drops an exception if it has the same name, message and stack as the immediately preceding exception. It doesn't keep a longer history: A, A, B, A is sent as A, B, A. Logs, traces and other event types are never affected.

Usage ​

ts
import { use } from '@buglapse/browser'
import { dedupeIntegration } from '@buglapse/browser/integrations'

use(dedupeIntegration())

The integration takes no options. With debug: true, each dropped duplicate is logged to the console.