OptionalappThe minimum amount of time an app should be unresponsive to be classified as an App Hanging. The actual amount may be a little longer. Avoid using values lower than 100ms, which may cause a lot of app hangs events being transmitted. Value should be in seconds.
iOS only
OptionalappOptional prefix to add while rewriting frames
OptionalattachWhen enabled and a user experiences an error, Sentry provides the ability to take a screenshot and include it as an attachment.
OptionalattachWhen enabled, all the threads are automatically attached to all logged events on Android
OptionalattachWhen enabled Sentry includes the current view hierarchy in the error attachments.
OptionalautoInitializes the native SDK on init.
Set this to false if you have an existing native SDK and don't want to re-initialize.
NOTE: Be careful and only use this if you know what you are doing. If you use this flag, make sure a native SDK is running before the JS Engine initializes or events might not be captured. Also, make sure the DSN on both the React Native side and the native side are the same one. We strongly recommend checking the documentation if you need to use this.
OptionalbreadcrumbsOptionalcolnooffset applied to errors colno
Optionaldisablednative integrations to disable.
Android only — sentry-cocoa 9 removed the integrations list, so on iOS use the dedicated native options instead (e.g. enableWatchdogTerminationTracking).
OptionalenableWhen enabled, the SDK tracks when the application stops responding for a specific amount of
time defined by the appHangTimeoutInterval option.
iOS only
OptionalenableEnable auto performance tracking by default. Renamed from enableAutoPerformanceTracking in v5.
OptionalenableShould sessions be tracked to Sentry Health or not. Default to true!
OptionalenableWhen enabled, Sentry will capture failed XHR/Fetch requests. This option also enabled HTTP Errors on iOS. Sentry Android Gradle Plugin is needed to capture HTTP Errors on Android.
OptionalenableEnables native transport + device info + offline caching.
Be careful, disabling this also breaks automatic release setting.
This means you have to manage setting the release yourself.
Defaults to true.
OptionalenableEnables native crashHandling. This only works if enableNative is true.
Defaults to true.
OptionalenableTrack the slow and frozen frames in the application. Enabling this options will add slow and frozen frames measurements to all created root spans (transactions).
OptionalenableShould the native nagger alert be shown or not.
OptionalenableEnable NDK on Android
OptionalenableEnable scope sync from Java to NDK on Android
Only has an effect if enableNdk is true.
OptionalenableThis option will enable forwarding captured Sentry events to Spotlight.
More details: https://spotlightjs.com/
IMPORTANT: Only set this option to true while developing, not in production!
OptionalenableTrack when and how long the JS event loop stalls for. Adds stalls as measurements to all transactions.
OptionalenableEnable tracing for the application (same as setting tracesSampleRate or tracesSampler).
OptionalenableEnables Out of Memory Tracking for iOS and macCatalyst. See the following link for more information and possible restrictions: https://docs.sentry.io/platforms/apple/guides/ios/configuration/out-of-memory/
Renamed from enableOutOfMemoryTracking in v5.
OptionalflushOptionalheadersOptionalmaxThe max cache items for capping the number of envelopes.
OptionalmaxThe max queue size for capping the number of envelopes waiting to be sent by Transport.
OptionalonerrorCapture uncaught errors.
On runtimes dispatching the global WHATWG error events (9.1+) this listens
to globalThis error events and defaults to true — uncaught errors no
longer crash the app there, so nothing else would report them. On older
runtimes it listens to Application.discardedErrorEvent and defaults to false.
OptionalonCallback that is called after the RN SDK on the JS Layer has made contact with the Native Layer.
OptionalonunhandledrejectionCapture unhandled promise rejections.
On runtimes dispatching the global WHATWG error events (9.1+) this listens
to globalThis unhandledrejection events (and leaves a breadcrumb on
rejectionhandled) and defaults to true. On older runtimes it listens to
Application.uncaughtErrorEvent and defaults to false.
OptionalsessionThe interval to end a session if the App goes to the background.
OptionalspotlightThis option changes the default Spotlight Sidecar URL.
By default, the SDK expects the Sidecar to be running on the same host as React Native Metro Dev Server.
More details: https://spotlightjs.com/
Configuration options for the Sentry Nativescript SDK.
See
NativescriptFrontend for more information.