Skip to content

Commit aa1fd1f

Browse files
authored
chore(Android): Update Performance V2 docs (#13173)
* update perfv2 * perfv2 snippet line highlights
1 parent e9e8816 commit aa1fd1f

File tree

1 file changed

+9
-12
lines changed
  • docs/platforms/android/tracing/instrumentation

1 file changed

+9
-12
lines changed

docs/platforms/android/tracing/instrumentation/perf-v2.mdx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,41 @@ sidebar_order: 11
44
description: "Learn how to get even more insights into Android app performance"
55
---
66

7-
<Alert>
7+
Performance V2 contains a set of features that enrich performance instrumentation. It tightly integrates with the [Mobile Vitals](/product/insights/mobile/mobile-vitals/) Insights module, enabling <PlatformLink to="/tracing/instrumentation/perf-v2/#app-start">App Start</PlatformLink> and <PlatformLink to="/tracing/instrumentation/perf-v2/#frames-delay">Frames Delay</PlatformLink> reporting.
88

9-
This feature is marked as _experimental_.
10-
Supported in Sentry's Android SDK version `7.4.0` and above.
11-
12-
</Alert>
13-
14-
Performance V2 is a set of features which enrich your existing instrumentation, giving you more insights into potential performance bottlenecks. These features tightly integrate with the [Mobile Vitals](/product/insights/mobile/mobile-vitals/) insights module.
9+
Since version 8 of the SDK, Performance V2 is generally available and enabled by default. In versions `7.4.0..<8.0.0`, this feature is available as _experimental_ and you need to opt in to use it:
1510

1611
### Enabling Performance V2
1712

18-
```java {filename:MyApplication.java}
13+
```java {filename:MyApplication.java} {4}
1914
import io.sentry.android.core.SentryAndroid;
2015

2116
SentryAndroid.init(this, options -> {
2217
options.setEnablePerformanceV2(true);
2318
});
2419
```
2520

26-
```kotlin {filename:MyApplication.kt}
21+
```kotlin {filename:MyApplication.kt} {4}
2722
import io.sentry.android.core.SentryAndroid
2823

2924
SentryAndroid.init(this) { options ->
3025
options.enablePerformanceV2 = true
3126
}
3227
```
3328

34-
```xml {filename:AndroidManifest.xml}
29+
```xml {filename:AndroidManifest.xml} {3-5}
3530
<manifest>
3631
<application>
37-
<meta-data android:name="io.sentry.performance-v2.enable" android:value="true" />
32+
<meta-data
33+
android:name="io.sentry.performance-v2.enable"
34+
android:value="true" />
3835
</application>
3936
</manifest>
4037
```
4138

4239
### App Start
4340

44-
Besides enabling performance-v2, this feature requires the <PlatformLink to="/configuration/gradle/">Sentry Android Gradle Plugin</PlatformLink> (version `4.2.0` or above) to be applied to your app module.
41+
Besides enabling Performance V2, this feature requires the <PlatformLink to="/configuration/gradle/">Sentry Android Gradle Plugin</PlatformLink> (version `4.2.0` or above) to be applied to your app module.
4542

4643
Once enabled, your App Start transaction will show a detailed span breakdown of various components:
4744
* `process.load`: The process initialization time

0 commit comments

Comments
 (0)