Skip to content

Commit 134c529

Browse files
romtsnstefanosiano
andauthored
chore(android): Add XML snippet for logs (#13723)
Co-authored-by: Stefano <[email protected]>
1 parent 5d6fa12 commit 134c529

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/platforms/android/manual-setup/index.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ Configuration is done via the application `AndroidManifest.xml`. Here's an examp
4949
<!-- enable the performance API by setting a sample-rate, adjust in production env -->
5050
<meta-data android:name="io.sentry.traces.sample-rate" android:value="1.0" />
5151

52-
<!-- enable profiling when starting transactions, adjust in production env -->
53-
<meta-data android:name="io.sentry.traces.profiling.sample-rate" android:value="1.0" />
54-
<!-- enable app start profiling -->
55-
<meta-data android:name="io.sentry.traces.profiling.enable-app-start" android:value="true" />
52+
<!-- Enable UI profiling, adjust in production env. This is evaluated only once per session -->
53+
<meta-data android:name="io.sentry.traces.profiling.session-sample-rate" android:value="1.0" />
54+
<!-- Set profiling mode. For more info see https://docs.sentry.io/platforms/android/profiling/#enabling-ui-profiling -->
55+
<meta-data android:name="io.sentry.traces.profiling.lifecycle" android:value="trace" />
56+
<!-- Enable profiling on app start. The app start profile will be stopped automatically when the app start root span finishes -->
57+
<meta-data android:name="io.sentry.traces.profiling.start-on-app-start" android:value="true" />
5658

5759
<!-- record session replays for 100% of errors and 10% of sessions -->
5860
<meta-data android:name="io.sentry.session-replay.on-error-sample-rate" android:value="1.0" />

platform-includes/logs/setup/android.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ class MyApplication : Application() {
3232
}
3333
}
3434
```
35+
36+
```XML {filename:AndroidManifest.xml}
37+
<meta-data android:name="io.sentry.logs.enabled" android:value="true" />
38+
```

0 commit comments

Comments
 (0)