Skip to content

feat(react-native): Document anrProfilingSampleRate for Android - #19274

Merged
antonis merged 1 commit into
masterfrom
feat/react-native-anr-profiling-sample-rate
Sep 10, 2026
Merged

antonis merged 1 commit into
masterfrom
feat/react-native-anr-profiling-sample-rate

Conversation

@antonis

@antonis antonis commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

⚠️ Should be merged after getsentry/sentry-react-native#6674 is released

Documents the new anrProfilingSampleRate option for the React Native SDK on Android. When set, the SDK profiles the main thread during a detected foreground ANR and attaches the resulting flamegraph to the ANR event on the next app start.

Adds an ANR Profiling on Android section to the React Native App Hangs page, alongside the existing NDK app-hang tracking docs. It includes the billing note (powered by the Profiling platform, billed as UI Profile Hours) and links to the sentry-java ANR profiling docs for deeper detail.

Accompanies the SDK change: getsentry/sentry-react-native#6673. ANR profiling graduated out of experimental in sentry-java 8.55.0 (getsentry/sentry-java#6042), which the RN SDK now bundles.

Note

This should merge once/after the SDK release that ships anrProfilingSampleRate (the accompanying SDK PR) is out.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • 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

EXTRA RESOURCES

Add an "ANR Profiling on Android" section to the React Native App Hangs page
documenting the new anrProfilingSampleRate option, which profiles the main
thread during a foreground ANR and attaches the profile to the ANR event.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 4, 2026 8:25am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Sep 4, 2026 8:25am UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Sep 4, 2026
@codeowner-assignment
codeowner-assignment Bot requested a review from a team September 4, 2026 08:18
@antonis
antonis marked this pull request as ready for review September 4, 2026 08:41

@lucas-zimerman lucas-zimerman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@antonis
antonis merged commit 5649b19 into master Sep 10, 2026
27 checks passed
@antonis
antonis deleted the feat/react-native-anr-profiling-sample-rate branch September 10, 2026 11:09
inventarSarah pushed a commit that referenced this pull request Sep 29, 2026
## DESCRIBE YOUR PR

⚠️ Should be merged after
getsentry/sentry-react-native#6674 is released

Documents the new `anrProfilingSampleRate` option for the React Native
SDK on Android. When set, the SDK profiles the main thread during a
detected foreground ANR and attaches the resulting flamegraph to the ANR
event on the next app start.

Adds an **ANR Profiling on Android** section to the React Native [App
Hangs](https://docs.sentry.io/platforms/react-native/configuration/app-hangs/)
page, alongside the existing NDK app-hang tracking docs. It includes the
billing note (powered by the Profiling platform, billed as UI Profile
Hours) and links to the `sentry-java` ANR profiling docs for deeper
detail.

Accompanies the SDK change: getsentry/sentry-react-native#6673. ANR
profiling graduated out of experimental in sentry-java 8.55.0
(getsentry/sentry-java#6042), which the RN SDK now bundles.

> [!NOTE]
> This should merge once/after the SDK release that ships
`anrProfilingSampleRate` (the accompanying SDK PR) is out.

## IS YOUR CHANGE URGENT?

- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+

## PRE-MERGE CHECKLIST

- [ ] 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](https://github.com/orgs/getsentry/teams/docs)

## EXTRA RESOURCES

- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — f1373a45 Deployed Sep 4, 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.

2 participants