feat(android): Expose enableAnrFingerprinting option#5838
Merged
Conversation
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
🤖 This preview updates automatically when you update the PR. |
Contributor
|
antonis
commented
Mar 18, 2026
This was referenced Mar 18, 2026
9d6b5ad to
40cd37e
Compare
Contributor
Author
|
@sentry review |
Contributor
Author
|
@cursor review |
40cd37e to
0a10aae
Compare
Allows React Native users to opt out of the default-on ANR fingerprinting behavior introduced in Android SDK 8.35.0, which groups ANR events with system-only stacktraces into a single issue. Fixes #5837 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6e8f4c1 to
5cc64fc
Compare
antonis
commented
Mar 18, 2026
alwx
approved these changes
Mar 19, 2026
Contributor
alwx
left a comment
There was a problem hiding this comment.
Looks good and straightforward. Thanks!
Contributor
Android (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 4a17c8f+dirty | 406.62 ms | 400.58 ms | -6.04 ms |
| df1f7df+dirty | 442.64 ms | 427.16 ms | -15.48 ms |
| a483f9f+dirty | 396.82 ms | 453.28 ms | 56.46 ms |
| 60cd796+dirty | 445.84 ms | 492.45 ms | 46.61 ms |
| 5c16cdc+dirty | 423.48 ms | 452.35 ms | 28.88 ms |
| 80e4616+dirty | 411.58 ms | 462.12 ms | 50.54 ms |
| 55b77fc+dirty | 411.87 ms | 417.16 ms | 5.29 ms |
| bca62c0+dirty | 414.36 ms | 451.06 ms | 36.70 ms |
| 0b64753+dirty | 448.67 ms | 474.61 ms | 25.94 ms |
| 4e6d7d7+dirty | 480.73 ms | 515.73 ms | 35.00 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 4a17c8f+dirty | 43.75 MiB | 47.99 MiB | 4.24 MiB |
| df1f7df+dirty | 43.75 MiB | 48.08 MiB | 4.33 MiB |
| a483f9f+dirty | 43.75 MiB | 48.41 MiB | 4.66 MiB |
| 60cd796+dirty | 43.75 MiB | 48.07 MiB | 4.32 MiB |
| 5c16cdc+dirty | 17.75 MiB | 19.68 MiB | 1.94 MiB |
| 80e4616+dirty | 43.75 MiB | 48.55 MiB | 4.80 MiB |
| 55b77fc+dirty | 43.75 MiB | 47.99 MiB | 4.24 MiB |
| bca62c0+dirty | 43.75 MiB | 48.41 MiB | 4.66 MiB |
| 0b64753+dirty | 17.75 MiB | 19.70 MiB | 1.95 MiB |
| 4e6d7d7+dirty | 43.75 MiB | 48.40 MiB | 4.64 MiB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5837
Type of change
Description
Android SDK 8.35.0 introduced
enableAnrFingerprinting(defaulttrue), which groups ANR events whose stacktraces contain only system frames into a single Sentry issue. Until now there was no way for React Native users to opt out from JavaScript.This PR exposes the option in the RN SDK:
Changes:
enableAnrFingerprinting?: booleantoBaseReactNativeOptionsinoptions.tsRNSentryStart.javaand forwarding toSentryAndroidOptions.setEnableAnrFingerprinting()Docs PR: getsentry/sentry-docs#17021
Motivation and Context
When users upgrade to the Android SDK 8.35.0+ (via this SDK's bump in #5812), the ANR grouping behavior changes silently. This option lets them opt out if needed.
How did you test it?
yarn build)enableTombstone,enableNdk)Checklist
RNSentryStart.javacan be added as a follow-upNext steps
This PR is based on #5812 and should be merged after (or together with) that PR.