chore(android): Graduate ANR profiling out of experimental - #6042
Merged
Merged
Conversation
Document AnrProfilingIntegration and anrProfilingSampleRate as stable public API. Co-Authored-By: Markus Hintersteiner <markus.hintersteiner@sentry.io>
📲 Install BuildsAndroid
|
markushi
marked this pull request as ready for review
September 2, 2026 08:42
markushi
requested review from
0xadam-brown,
adinauer,
markushi,
romtsn and
runningcode
as code owners
September 2, 2026 08:42
6 tasks
This was referenced Sep 2, 2026
This was referenced Sep 3, 2026
antonis
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Sep 10, 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 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.
📜 Description
Marks ANR profiling as a stable public API by documenting
AnrProfilingIntegrationand theanrProfilingSampleRateoptions. The integration was never annotated with@ApiStatus.Experimental; it was only described as experimental in release notes and docs.💡 Motivation and Context
ANR profiling has shipped since 8.35.0 and is ready to leave experimental status. This PR documents the stable API surface in code so the feature is no longer treated as experimental in the SDK.
💚 How did you test it?
./gradlew :sentry-android-core:spotlessApply :sentry-android-core:apiDump📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Requested by markus.hintersteiner.
--
View Junior Session [Sentry]