Skip to content

Commit a15602b

Browse files
committed
Match manifest property to convention, enable profiling in sample app
1 parent 29b2ff0 commit a15602b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- This feature will capture a stack profile of the main thread when it gets unresponsive
1010
- The profile gets attached to the ANR event on the next app start, providing a flamegraph of the ANR issue on the sentry issue details page
1111
- Breaking change: if the ANR stacktrace contains only system frames (e.g. `java.lang` or `android.os`), a static fingerprint is set on the ANR event, causing all ANR events to be grouped into a single issue, reducing the overall ANR issue noise
12-
- Enable via `options.setEnableAnrProfiling(true)` or Android manifest: `<meta-data android:name="io.sentry.anr.enable-profiling" android:value="true" />`
12+
- Enable via `options.setEnableAnrProfiling(true)` or Android manifest: `<meta-data android:name="io.sentry.anr.profiling.enable" android:value="true" />`
1313

1414
### Dependencies
1515

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
@@ -170,7 +170,7 @@ final class ManifestMetadataReader {
170170

171171
static final String SPOTLIGHT_CONNECTION_URL = "io.sentry.spotlight.url";
172172

173-
static final String ENABLE_ANR_PROFILING = "io.sentry.anr.enable-profiling";
173+
static final String ENABLE_ANR_PROFILING = "io.sentry.anr.profiling.enable";
174174

175175
/** ManifestMetadataReader ctor */
176176
private ManifestMetadataReader() {}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,11 @@
257257
<meta-data
258258
android:name="io.sentry.session-replay.network-response-headers"
259259
android:value="X-Response-Time,X-Cache-Status,X-Test-Response" />
260-
<meta-data
260+
<meta-data
261261
android:name="io.sentry.spotlight.enable"
262262
android:value="true" />
263+
<meta-data
264+
android:name="io.sentry.anr.profiling.enable"
265+
android:value="true" />
263266
</application>
264267
</manifest>

0 commit comments

Comments
 (0)