Skip to content

docs(android): Add non-fatal ANRs - #20961

Open
markushi wants to merge 3 commits into
masterfrom
chore/let-s-update-the-android
Open

markushi wants to merge 3 commits into
masterfrom
chore/let-s-update-the-android

Conversation

@markushi

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Documents non-fatal ANRs for Android. With non-fatal ANR reporting, the SDK reports main thread hangs in the foreground that recover before Android kills the app. These hangs never show up as fatal ANRs. The SDK feature is implemented in getsentry/sentry-java#6722 and is not released yet, so this PR stays a draft until the SDK release is out.

  • app-not-respond.mdx: new "Non-Fatal ANRs" section (enabling, threshold, event contents, relation to fatal ANRs, beforeSend filtering, limitations)
  • app-not-respond.mdx: "ANR Profiling" now says the profile starts after 300 ms instead of 1 s, and that it shares main thread sampling with non-fatal ANRs
  • app-not-respond.mdx: "ANR Rate" explains that non-fatal ANRs do not count toward the ANR rate
  • app-not-respond.mdx: the Watchdog (v1) alert now refers to an attached debugger and to anrReportInDebug
  • options.mdx: new nonFatalAnrSampleRate, nonFatalAnrThresholdMs and anrReportInDebug options; updated anrProfilingSampleRate

Open items before merge:

  1. Replace <NEXT_VERSION> with the SDK version that ships the feature.
  2. The event names (NonFatalANR, non_fatal_anr, non-fatal-anr) are provisional until Sentry Conventions agree.
  3. Billing: non-fatal ANR events are error events. Confirm whether the docs should say how they count toward the error quota.
  4. Add screenshots of a non-fatal ANR issue after the release.
  5. Confirm the product decision: a fatal ANR that the SDK already reported as a non-fatal ANR shows without the system thread dump.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace YYYY-MM-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: 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 supplied a deadline.

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

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
develop-docs Ready Ready Preview Nov 24, 2026 1:21pm UTC
sentry-docs Ready Ready Preview Nov 24, 2026 1:21pm UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Nov 24, 2026
@codeowner-assignment
codeowner-assignment Bot requested review from a team, 0xadam-brown and romtsn and removed request for a team November 24, 2026 13:13
@codeowner-assignment
codeowner-assignment Bot requested a review from a team November 24, 2026 13:15
@markushi
markushi marked this pull request as ready for review November 24, 2026 13:17
@cursor

cursor Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Getting ready to monitor this change · Rollout details

Status Service Environment
⏳ Getting ready to monitor this change

@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

JAVA-763

This branch was successfully deployed

2 active deployments
Preview – sentry-docs — 4730d6ff Deployed Nov 24, 2026 by vercel[bot]
Preview – develop-docs — 4730d6ff Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant