Incorrect app start transaction duration when app goes in sleep
@runningcode đang làm issue này rồi.
Từ ngày 10/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- Kotlin
- Star
- 1.4k
- Fork
- 478
- Merge trung bình
- 3 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 70
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-java
-
Bug Java Platform: Java
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/sentry-java#6138 · 1 bình luận ·
-
Feature Java Platform: Java Spans
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-java#5984 · 1 bình luận ·
-
Android Task Traces
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-java#5376 · 1 bình luận ·
-
Android Docs Errors
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
getsentry/sentry-java#5375 · 1 bình luận ·
-
Android good first issue Task User Feedbacks
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-java#5354 · 1 bình luận ·
Tất cả issue của getsentry/sentry-java
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
index-request triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Anthonyy232/Paperize#614 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
🌑 nextgen
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
CCBlueX/LiquidBounce#9214 · 1 bình luận ·