Skip to content

UI load duration is hours long #4308

@serglom21

Description

@serglom21

Integration

sentry-android

Build System

Gradle

AGP Version

N/A

Proguard

Enabled

Version

7.20.1

Steps to Reproduce

When looking at some of the UI load traces for an Android app, I see traces with hour-long durations, sometimes even going up to days. I see that traces with long durations are reported to have happened while the app was in the foreground, which removes the possibility of them being recorded while the app was in the background (that or the SDK is recording in_foreground wrongly).
Looking at the related issues, there are a lot of ANRs happening on that transaction. It seems that idleTimeout might not have any effect here since there is a span ui.load_initial_display which is active throughout the full trace timeline.

Expected Result

I would expect UI Load traces to not be hours / days long.

Actual Result

Traces are hours long and there are a lot of repeating onStart / onCreate lifecycle spans, which seems odd.

There is sensitive information on these traces so I am attaching them in the customer case

Metadata

Metadata

Assignees

Labels

Projects

Status

Needs Investigation

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions