ReportingObserver

Import name: Sentry.reportingObserverIntegration

This integration hooks into the ReportingObserver API and sends captured events through to Sentry. It can be configured to handle specific issue types only.

This integration requires you to install @sentry/integrations next to your main SDK package.

Copied
import * as Sentry from "@sentry/browser";
import { reportingObserverIntegration } from "@sentry/integrations";

Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
  integrations: [reportingObserverIntegration()],
});

Type: ('crash'|'deprecation'|'intervention')[]

Only handle the given issue types. By default, all issue types are handled.

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