Skip to content

feat(android): Expose enableAnrFingerprinting option #5837

Closed

Description

@antonis

Problem

Android SDK 8.35.0 introduced enableAnrFingerprinting which is enabled by default. When enabled, ANR events whose stacktraces contain only system frames (e.g. java.lang, android.os) are grouped into a single issue instead of creating many separate issues.

There is currently no way for React Native users to opt out of this behavior from JavaScript.

Solution

Expose enableAnrFingerprinting (default: true, matching Android SDK default) in the RN SDK options so users can disable it if needed:

Sentry.init({
  dsn: '...',
  enableAnrFingerprinting: false, // opt-out of default ANR grouping
});

This requires:

  • Adding the option to the JS/TS options type
  • Passing it through the native bridge to SentryAndroidOptions

Context

Activity

  1. linear-code commented on Mar 18, 2026

    @linear-code
  2. self-assigned this
    on Mar 18, 2026
  3. added 2 commits that reference this issue on Mar 18, 2026
    6aa8e6b
    5cc64fc
  4. added a commit that references this issue on Mar 19, 2026
    449b1c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions