Skip to content

Start the warm app start from onActivityPreCreated on API 29+ #6717

Open

Description

@runningcode

On a warm start, AppStartMetrics restarts the app start span at the time of onActivityCreated. The activity.load span already starts in onActivityPreCreated, so the app.start transaction starts slightly after its own first child.

On API 29+, record the warm start timestamp in onActivityPreCreated. Keep onActivityCreated as the fallback on older versions, where pre-created callbacks don't exist.

This is pre-existing and was raised in review of #6687.

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. linear-code commented on Nov 20, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions