ReportingObserver | Sentry for Next.js
Source URL: https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/reportingobserver
ReportingObserver | Sentry for Next.js
Section titled “ReportingObserver | Sentry for Next.js”This integration only works inside a browser environment.
Import name: Sentry.reportingObserverIntegration
This integration hooks into the Reporting API and sends captured events through to Sentry. It can be configured to handle specific issue types only.
import * as Sentry from "@sentry/browser";
Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [Sentry.reportingObserverIntegration()],});Type: ('crash'|'deprecation'|'intervention')[]
Only handle the given issue types. By default, all issue types are handled.