Skip to content

Commit fed3d62

Browse files
marandanetopriscilawebdev
authored andcommitted
Fix manifest code snippet tag (#5069)
1 parent 655b6db commit fed3d62

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/platforms/android/common/performance/instrumentation/automatic-instrumentation.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ The transaction starts before each Activity's `onCreate` method is called.
2323
_The Activity's instrumentation is enabled by default, but you may disable it by setting:_
2424

2525
```xml {filename:AndroidManifest.xml}
26-
<manifest>
26+
<application>
2727
<meta-data android:name="io.sentry.traces.activity.enable" android:value="false" />
28-
</manifest>
28+
</application>
2929
```
3030

3131
The transaction finishes after each Activity's `onResume` method is executed.
3232

3333
_The transaction finishes automatically, but you may disable it by setting:_
3434

3535
```xml {filename:AndroidManifest.xml}
36-
<manifest>
36+
<application>
3737
<meta-data android:name="io.sentry.traces.activity.auto-finish.enable" android:value="false" />
38-
</manifest>
38+
</application>
3939
```
4040

4141
We offer the possibility to finish the transaction manually. For example, you might want to finish the transaction after an API call triggered on Activity's `onCreate` and shown the data to the user. To achieve that you can do:
@@ -143,9 +143,9 @@ The app start is only measured if the process is of the importance [RunningAppPr
143143
You can opt out of Android's Activity Instrumentation and App Start Instrumentation using options:
144144

145145
```xml {filename:AndroidManifest.xml}
146-
<manifest>
146+
<application>
147147
<meta-data android:name="io.sentry.traces.activity.enable" android:value="false" />
148-
</manifest>
148+
</application>
149149
```
150150

151151
Cold and warm start are Mobile Vitals, which you can learn about in the [full documentation](/product/performance/mobile-vitals).
@@ -239,9 +239,9 @@ If the view doesn't have the `id` assigned, the transaction won't be captured be
239239
The UI instrumentation is disabled by default, but you can enable it by setting:
240240

241241
```xml {filename:AndroidManifest.xml}
242-
<manifest>
242+
<application>
243243
<meta-data android:name="io.sentry.traces.user-interaction.enable" android:value="true" />
244-
</manifest>
244+
</application>
245245
```
246246

247247
The transaction finishes automatically after it reaches the specified [idleTimeout](/platforms/android/configuration/options/#idle-timeout) and all of its child spans are finished. The `idleTimeoout` defaults to `3000` milliseconds (three seconds). You can also disable the idle timeout by setting it to `null`, but the transaction must be finished manually in this case.

0 commit comments

Comments
 (0)