Skip to content

Commit 8ad1cc9

Browse files
markushiclaude
andcommitted
feat(android): Default enableAnrFingerprinting to true
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a23b5c7 commit 8ad1cc9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ static void applyMetadata(
688688
}
689689

690690
options.setEnableAnrFingerprinting(
691-
readBool(metadata, logger, ENABLE_ANR_FINGERPRINTING, false));
691+
readBool(metadata, logger, ENABLE_ANR_FINGERPRINTING, true));
692692
}
693693
options
694694
.getLogger()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public interface BeforeCaptureCallback {
255255

256256
private @Nullable Double anrProfilingSampleRate;
257257

258-
private boolean enableAnrFingerprinting = false;
258+
private boolean enableAnrFingerprinting = true;
259259

260260
public SentryAndroidOptions() {
261261
setSentryClientName(BuildConfig.SENTRY_ANDROID_SDK_NAME + "/" + BuildConfig.VERSION_NAME);

sentry-android-core/src/test/java/io/sentry/android/core/ManifestMetadataReaderTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ class ManifestMetadataReaderTest {
20442044
ManifestMetadataReader.applyMetadata(context, fixture.options, fixture.buildInfoProvider)
20452045

20462046
// Assert
2047-
assertFalse(fixture.options.isEnableAnrFingerprinting)
2047+
assertTrue(fixture.options.isEnableAnrFingerprinting)
20482048
}
20492049

20502050
// Network Detail Configuration Tests

0 commit comments

Comments
 (0)