Skip to content

Commit a23b5c7

Browse files
markushiclaude
andcommitted
feat(android): Mark enableAnrFingerprinting as experimental
Also enable the option in the sample app. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent df15d67 commit a23b5c7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/SentryAndroidOptions.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,11 @@ public boolean isAnrProfilingEnabled() {
724724
* a static fingerprint to ANRs whose stacktraces contain only system frames and no application
725725
* frames.
726726
*
727+
* <p>This is an experimental feature and may be changed or removed in a future release.
728+
*
727729
* @return true if ANR fingerprinting is enabled
728730
*/
731+
@ApiStatus.Experimental
729732
public boolean isEnableAnrFingerprinting() {
730733
return enableAnrFingerprinting;
731734
}
@@ -735,8 +738,11 @@ public boolean isEnableAnrFingerprinting() {
735738
* to ANR events that would otherwise produce noisy grouping. Currently, this applies a static
736739
* fingerprint to ANRs whose stacktraces contain only system frames and no application frames.
737740
*
741+
* <p>This is an experimental feature and may be changed or removed in a future release.
742+
*
738743
* @param enableAnrFingerprinting true to enable ANR fingerprinting
739744
*/
745+
@ApiStatus.Experimental
740746
public void setEnableAnrFingerprinting(final boolean enableAnrFingerprinting) {
741747
this.enableAnrFingerprinting = enableAnrFingerprinting;
742748
}

sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,5 +268,8 @@
268268
<meta-data
269269
android:name="io.sentry.anr.profiling.sample-rate"
270270
android:value="1.0" />
271+
<meta-data
272+
android:name="io.sentry.anr.enable-fingerprinting"
273+
android:value="true" />
271274
</application>
272275
</manifest>

0 commit comments

Comments
 (0)