sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Long ui.load transactions exceeding deadlineTimeout for Android Activities

Open idosun opened this issue 4 months ago • 3 comments

Integration

sentry-android

Build System

Gradle

AGP Version

5.9.0

Proguard

Enabled

Version

8.19.1

Steps to Reproduce

Customer is seeing long ui.load traces that exceed the default deadlineTimeout defined (30s)

Expected Result

Transaction duration should not exceed the defined deadlineTimeout

Actual Result

In certain cases, we're seeing transaction duration exceed deadlineTimeout

Some common observations:

  • All suspicious long transactions that are ui.load have a Activity.onStart but not a Activity.onCreate
  • None of the suspicious long transactions have a app.start.cold span or a app.start.warm span

Considering the above, the issue might be that the app goes to the BG before the deadline (and before any other spans are opened) and then it resumes from BG and closes out the open span like an hour later. This could happen if the process starts, but the Activity never gets through onCreate/onStart.

idosun avatar Sep 02 '25 18:09 idosun

@idosun could you share an event link with us to have a closer look?

markushi avatar Sep 10 '25 13:09 markushi

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Nov 05 '25 08:11 getsantry[bot]