Performance V2
This feature is marked as experimental. Supported in Sentry's Android SDK version 7.4.0
and above.
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 Mobile Vitals.
MyApplication.java
import io.sentry.android.core.SentryAndroid;
SentryAndroid.init(this, options -> {
options.setEnablePerformanceV2(true);
});
Besides enabling performance-v2, this feature requires the Sentry Android Gradle Plugin (version 4.2.0
or above) to be applied to your app module.
Once enabled, your App Start transaction will show a detailed span breakdown of various components:
process.load
: The process initialization timecontentprovider.load
:ContentProvider.onCreate()
execution timeapplication.load
:Application.onCreate()
execution timeactivity.load
: The execution time of yourActivity
lifecycle prior to the first frame being drawn
Frames Delay is the user-perceived delayed duration of rendered frames. The Android SDK automatically attaches this information to every span, giving useful insights and showcasing which spans correlate the most to an impaired user experience. For more technical details about frame delay, head over to our develop docs.
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
- Package:
- maven:io.sentry:sentry-android
- Version:
- 7.8.0
- Repository:
- https://github.com/getsentry/sentry-java
- API Documentation:
- https://javadoc.io/doc/io.sentry