Skip to content

chore(android): Graduate ANR profiling out of experimental - #6042

Merged
markushi merged 2 commits into
mainfrom
chore/anr-profiling-out-of-experimental
Sep 2, 2026
Merged

markushi merged 2 commits into
mainfrom
chore/anr-profiling-out-of-experimental

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

📜 Description

Marks ANR profiling as a stable public API by documenting AnrProfilingIntegration and the anrProfilingSampleRate options. 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

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change; changelog entry added.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

  • Update docs.sentry.io ANR Profiling section to drop the experimental label

Requested by markus.hintersteiner.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits September 2, 2026 08:36
Document AnrProfilingIntegration and anrProfilingSampleRate as stable public API.

Co-Authored-By: Markus Hintersteiner <markus.hintersteiner@sentry.io>
Co-Authored-By: Markus Hintersteiner <markus.hintersteiner@sentry.io>
@sentry

sentry Bot commented Sep 2, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.54.0 (1) release

⚙️ sentry-android Build Distribution Settings

@0xadam-brown 0xadam-brown left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀

@markushi
markushi merged commit fa8c306 into main Sep 2, 2026
71 checks passed
@markushi
markushi deleted the chore/anr-profiling-out-of-experimental branch September 2, 2026 11:24
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>
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.

2 participants