Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
- Add `expoUpdatesListenerIntegration` that records breadcrumbs for Expo Updates lifecycle events ([#5795](https://github.com/getsentry/sentry-react-native/pull/5795))
- Tracks update checks, downloads, errors, rollbacks, and restarts as `expo.updates` breadcrumbs
- Enabled by default in Expo apps (requires `expo-updates` to be installed)
-
- feat(android): Expose `enableAnrFingerprinting` option ([#5838](https://github.com/getsentry/sentry-react-native/issues/5838))

### Fixes

- Fix native frames measurements being dropped due to race condition ([#5813](https://github.com/getsentry/sentry-react-native/pull/5813))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ static void getSentryAndroidOptions(
if (rnOptions.hasKey("enableTombstone")) {
options.setTombstoneEnabled(rnOptions.getBoolean("enableTombstone"));
}
if (rnOptions.hasKey("enableAnrFingerprinting")) {
options.setEnableAnrFingerprinting(rnOptions.getBoolean("enableAnrFingerprinting"));
}
if (rnOptions.hasKey("spotlight")) {
if (rnOptions.getType("spotlight") == ReadableType.Boolean) {
options.setEnableSpotlight(rnOptions.getBoolean("spotlight"));
Expand Down
13 changes: 13 additions & 0 deletions packages/core/src/js/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ export interface BaseReactNativeOptions {
*/
enableNdkScopeSync?: boolean;

/**
* When enabled, ANR events whose stacktraces contain only system frames
* (e.g. `java.lang`, `android.os`) are assigned a static fingerprint and
* grouped into a single issue instead of creating many separate issues.
*
* Enabled by default in the Android SDK since v8.35.0.
* Set to `false` to restore per-stacktrace ANR grouping.
*
* @default true
* @platform android
*/
enableAnrFingerprinting?: boolean;

/**
* When enabled, all the threads are automatically attached to all logged events on Android
*
Expand Down
Loading