Enable "Don't keep activities" in developer options.
Open app
Leave the app
Open the app again in 20 seconds
Expected Result
Correct ui.load span
Actual Result
ui.load span duration is more than 20 seconds
As I understand, the root cause is here - when an activity gets destroyed in the background its paused time is used as the start time for the next ui.load transaction
Integration
sentry-android
Build System
Gradle
AGP Version
8.7.2
Proguard
Enabled
Version
7.14.0
Steps to Reproduce
Expected Result
Correct
ui.load
spanActual Result
ui.load
span duration is more than 20 secondsAs I understand, the root cause is here - when an activity gets destroyed in the background its paused time is used as the start time for the next
ui.load
transaction