Skip to content

docs(android): Document ANR profiling and fingerprinting#16816

Open
markushi wants to merge 5 commits intomasterfrom
markushi/chore/android-anr-profiling
Open

docs(android): Document ANR profiling and fingerprinting#16816
markushi wants to merge 5 commits intomasterfrom
markushi/chore/android-anr-profiling

Conversation

@markushi
Copy link
Member

@markushi markushi commented Mar 6, 2026

DESCRIBE YOUR PR

Document two new Android SDK features available in version 8.35.0:

  • ANR Profiling (Experimental): Captures main thread stack profiles during ANR detection, attached as flamegraphs on the issue details page. Configured via anrProfilingSampleRate (disabled by default).
  • ANR Fingerprinting: Groups system-frame-only ANRs into a single issue to reduce noise. Enabled by default, configurable via enableAnrFingerprinting.

Changes across three files:

  • docs/platforms/android/configuration/app-not-respond.mdx — New sections with configuration examples (AndroidManifest.xml, Kotlin, Java)
  • docs/platforms/android/configuration/options.mdx — New SdkOption entries for both features
  • docs/platforms/android/index.mdx — Links to new features in Next Steps

Related SDK PRs:

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

markushi and others added 2 commits March 6, 2026 09:30
Add documentation for two new experimental features available in SDK 8.35.0:
- ANR Profiling: captures main thread stack profiles during ANR detection
- ANR Fingerprinting: groups system-frame-only ANRs to reduce noise (enabled by default)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Mar 9, 2026 1:16pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Mar 9, 2026 1:16pm

Request Review

@codeowner-assignment codeowner-assignment bot requested a review from a team March 6, 2026 08:44
- Remove redundant SDK version Alert from options page
- Collapse two Next Steps bullets into one

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with two suggestions.


The SDK can capture stack profiles of the main thread when an ANR is detected. The captured profile is attached to the ANR event on the next app start, providing a flamegraph on the Sentry issue details page. This gives you deeper insight into what the main thread was doing at the time of the ANR.

ANR profiling only captures profiles for foreground ANRs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m: Do people have to opt-in to profiling? Do they have to pay for profiles? I'm just curious because I don't know the answers to these questions, and maybe some users have these questions. It would be great to mention this here.

Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

markushi and others added 2 commits March 9, 2026 12:42
Replace the sequence diagram with a simpler flowchart for the ANR
profiling section. Add a screenshot showing the ANR profile flamegraph
on the issue details page.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants