Incorrect app start transaction duration when app goes in sleep
@runningcode ya está trabajando en esto.
Desde el 10/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
As reported by a customer we're seeing the following behavior:
- App is launched
- A cold start is detected and an
ui.loadtransaction is created (app.start.cold+ttid) - The app is backgrounded before the first frame draws (and the activity only progresses through the
onCreate+onStartphases, noonDestroy) — so TTID never happens, and no lifecycle cleanup on our side runs. - The device enters Doze, which freezes our deadline timer so it doesn't fire at +30s.
- Hours later the device wakes up, the deadline finally fires when the app is resumed, and our
forceFinishstamps the spans with the current time. - The resulting transactions spans over multiple hours.
I would argue that we should drop any foreground launches which have a doze in-between, as it just skews the real "user perceived" launches.
On the other hand, a real user was probably waiting for a few seconds for the app to come alive, but it didn't, so the user bailed.
Related issue: getsentry/sentry-java#5530
- Lenguaje dominante
- Kotlin
- Estrellas
- 1.4k
- Forks
- 478
- Merge medio
- 3 d 2 h
- PR fusionados (30 d)
- 70
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-java
-
Improvement Java Platform: Java
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-java#6145 · 1 comentario ·
-
Bug Java Platform: Java
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-java#6138 · 1 comentario ·
-
Feature Java Platform: Java Spans
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/sentry-java#5984 · 1 comentario ·
-
Android Task Traces
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/sentry-java#5376 · 1 comentario ·
-
Android Docs Errors
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
getsentry/sentry-java#5375 · 1 comentario ·
Todos los issues de getsentry/sentry-java
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Telegram !!! Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Xposed-Modules-Repo/com.fuck.iab#24 · 3 comentarios · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
SimonHalvdansson/Harmonic-HN#361 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
johanhaleby/occurrent#1120 ·