Breadcrumbs
Import name: Sentry.Integrations.Breadcrumbs
This integration is enabled by default.
This integration wraps native APIs to capture breadcrumbs. By default, the Sentry SDK wraps all APIs.
You can opt-out of capturing breadcrumbs for specific parts of your application (e.g. do not capture console.log
calls as breadcrumbs) via the options below.
Options
console
Type: boolean
Log calls to console.log
, console.debug
, etc.
dom
Type: boolean
| { serializeAttribute: string | string[] }
Log all click and keypress events.
When an object with a serializeAttribute
key is provided, the Breadcrumbs integration will look for given attribute(s) in DOM elements while generating the breadcrumb trails. Matched elements will be followed by their custom attributes, instead of their id
s or class
names.
fetch
Type: boolean
Log HTTP requests done with the Fetch API
history
Type: boolean
Log calls to history.pushState
and related APIs.
sentry
Type: boolean
Log whenever we send an event to the server.
xhr
Type: boolean
Log HTTP requests done with the XHR API.
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.72.0
- Repository:
- https://github.com/getsentry/sentry-javascript