Skip to content

Cold start measurement doesn't work in 7.12.1 #3608

@zhukic

Description

@zhukic

Integration

sentry-android

Build System

Gradle

AGP Version

8.5.1

Proguard

Enabled

Version

7.12.1

Steps to Reproduce

Updated SDK from 7.9.0 to 7.12.1

Performance V2 is enabled

Application launch from foreground(isForegroundImportance is true)

Expected Result

Cold start measurement works

Actual Result

Transactions are missing the app.start.cold span.

I debugged the SDK, and the problem is here

public void registerApplicationForegroundCheck(final @NotNull Application application) {

The Runnable passed to Handler.post is called before AppStartMetrics.onActivityCreated so that appLaunchedInForeground set to false which leads to AppStartMetrics.getAppStartTimeSpanWithFallback returns the empty span.

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

Status

Done

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions