Integration
sentry-android
Build System
Gradle
AGP Version
5.10.0
Proguard
Enabled
Version
8.17.0
Steps to Reproduce
The Sentry SDK is capturing an unreasonably low number of warm starts, and the start duration consistently shows cold < warm.
This happens for a specific Activity in my app that is configured with android:launchMode="singleTask".
I suspect that the SDK is misclassifying app startup types in AppStartMetrics.java → onActivityCreated() (
|
appStartType = savedInstanceState == null ? AppStartType.COLD : AppStartType.WARM; |
)
as the singleTask launch mode would always create Activity instances with savedInstanceState = null, causing all app launches to be classified as cold starts.
Expected Result
warm start < cold start
Actual Result
warm start > cold start
Integration
sentry-android
Build System
Gradle
AGP Version
5.10.0
Proguard
Enabled
Version
8.17.0
Steps to Reproduce
The Sentry SDK is capturing an unreasonably low number of warm starts, and the start duration consistently shows cold < warm.
This happens for a specific Activity in my app that is configured with
android:launchMode="singleTask".I suspect that the SDK is misclassifying app startup types in AppStartMetrics.java → onActivityCreated() (
sentry-java/sentry-android-core/src/main/java/io/sentry/android/core/performance/AppStartMetrics.java
Line 364 in 23b6ef9
as the singleTask launch mode would always create Activity instances with savedInstanceState = null, causing all app launches to be classified as cold starts.
Expected Result
warm start < cold start
Actual Result
warm start > cold start