Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Incorrect app start transaction duration when app goes in sleep

Abierto
#5,752 1 comentario 0 reacciones 1 asignado Ver en GitHub

@runningcode ya está trabajando en esto.

Desde el 10/9/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Android Bug Platform: Android Platform: Java

As reported by a customer we're seeing the following behavior:

  1. App is launched
  2. A cold start is detected and an ui.load transaction is created (app.start.cold + ttid)
  3. The app is backgrounded before the first frame draws (and the activity only progresses through the onCreate + onStart phases, no onDestroy) — so TTID never happens, and no lifecycle cleanup on our side runs.
  4. The device enters Doze, which freezes our deadline timer so it doesn't fire at +30s.
  5. Hours later the device wakes up, the deadline finally fires when the app is resumed, and our forceFinish stamps the spans with the current time.
  6. 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

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/sentry-java

Todos los issues de getsentry/sentry-java

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.