Automatically captured data

This documentation is for version 6 of the BugSnag JavaScript notifier. We recommend upgrading to the latest release using our Upgrade guide. Documentation for the current release can be found here.

BugSnag automatically captures a variety of data to help you debug your errors. You may wish to avoid capturing some types of data, particularly if there are privacy implications for your users.

Application information

Information about the application can be useful to identify if an error occurs in certain versions.

Data Default value Preventing collection
App version The version of the application, as specified in app.json Modify client.app.version or modify app in a callback
Native version The version of the native ipa/apk which is running (standalone apps only) Modify app.metaData in a callback
Code bundle ID The version of the JS bundle reported by Expo internally as revisionId Modify app in a callback¹.
Duration How long since the app was started Modify app in a callback.
Duration in foreground How long since the app entered the foreground Modify app in a callback.
In foreground Whether the app was in the foreground when the error happened Modify app in a callback.

¹ This ID is used to match source maps and if you remove it source maps will not work.

Device information

Information about the device can be useful to identify if an error is only occurring on some devices.

Data Default value Preventing collection
Device ID The installationId reported by Expo Modify device in a callback
Manufacturer The device manufacturer² Modify device in a callback
Model name The model name² Modify device in a callback
Model number The model number² Modify device in a callback
OS name The name of the operating system Modify device in a callback
OS version The version of the operating system Modify device in a callback
Orientation The orientation of the device at the time of the error Modify device in a callback
Runtime versions The version numbers of the following (if available): Expo SDK, Expo client, React Native, Android API level Modify device in a callback
Is device Whether the app is running on a physical device or on a virtual device Modify device.metaData in a callback
App ownership The value of appOwnership provided by Expo – whether the app is running standalone or in the Expo client Modify device.metaData in a callback

² iOS only

Breadcrumbs are automatically recorded for common actions and can be helpful to reproduce errors.

Data Default value Preventing collection
Console message The message sent to the console and its severity Set consoleBreadcrumbsEnabled or modify breadcrumbs in a callback
Network requests The URL requested and the status code returned Set networkBreadcrumbsEnabled or modify breadcrumbs in a callback
Orientation changes The previous and current orientation of the device Set orientationBreadcrumbsEnabled or modify breadcrumbs in a callback
App state Whether the device is in the foreground or the background Set appStateBreadcrumbsEnabled or modify breadcrumbs in a callback
Connectivity changes The connection type and strength Set connectivityBreadcrumbsEnabled or modify breadcrumbs in a callback

Error information

Modifying error information may affect error grouping.

Data Default value Preventing collection
Context The pathname of the URL Modify context in a callback
Error class The class of the error that occurred Modify errorClass in a callback
Error message The message of the error that occurred Modify errorMessage in a callback
Stack trace The URL of the file where the error occurred, method and line number Modify stacktrace in a callback