GlobalHandlers
Import name: Sentry.Integrations.GlobalHandlers
This integration is enabled by default.
This integration attaches global handlers to capture uncaught exceptions and unhandled rejections. It captures errors and unhandled promise rejections by default.
Options
onerror
Type: boolean
Capture errors bubbled to onerror
.
onunhandledrejection
Type: boolean
Capture unhandled promise rejections.
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
- Package:
- npm:@sentry/browser
- Version:
- 7.83.0
- Repository:
- https://github.com/getsentry/sentry-javascript