Skip to content

Long ui.load transactions exceeding deadlineTimeout for Android Activities  #4693

Description

@idosun

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.

Metadata

Metadata

Assignees

Labels

Projects

Status
Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions