Skip to content

onCreate span is missing in all automatic activity transactions #4241

@zhukic

Description

@zhukic

Integration

sentry-android

Build System

Gradle

AGP Version

8.8.0

Proguard

Disabled

Version

8.2.0

Steps to Reproduce

The issue is reproducible with any not-first activity.

Expected Result

All activity transactions contain onCreate and onStart spans.

Actual Result

Only the onStart span exists.

Image

It looks like the root cause is in ActivityLifecycleIntegration - when onActivityPreCreated is called for non-first activity, the firstActivityCreated value is true and ActivityLifecycleSpanHelper.setOnCreateStartTimestamp is not called.

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