feat(react-native): Document anrProfilingSampleRate for Android - #19274
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
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
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.
DESCRIBE YOUR PR
Documents the new
anrProfilingSampleRateoption 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-javaANR 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?
PRE-MERGE CHECKLIST
EXTRA RESOURCES