Skip to content

feat(mobile): Backfill app.vitals.start.screen to mobile v1 transactions#5960

Open
buenaflor wants to merge 3 commits intomasterfrom
backfill-app-vitals-start-screen
Open

feat(mobile): Backfill app.vitals.start.screen to mobile v1 transactions#5960
buenaflor wants to merge 3 commits intomasterfrom
backfill-app-vitals-start-screen

Conversation

@buenaflor
Copy link
Copy Markdown
Contributor

In mobile we are implementing a new schema on how we send app start data and in order to be backwards compatible we need to backfill app.vitals.start.screen to existing ui.load transactions that have app start measurements

Comment thread relay-conventions/src/lib.rs Outdated
@buenaflor buenaflor force-pushed the backfill-app-vitals-start-screen branch from d0e8c78 to 0f8d798 Compare May 8, 2026 10:50
@buenaflor buenaflor marked this pull request as ready for review May 8, 2026 10:55
@buenaflor buenaflor requested a review from a team as a code owner May 8, 2026 10:55
Copilot AI review requested due to automatic review settings May 8, 2026 10:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a normalization/backfill step for mobile transactions to populate app.vitals.start.screen on existing ui.load transactions when app start measurements are present, preserving backward compatibility during the schema transition.

Changes:

  • Extend app-start measurement source detection to include both legacy (app_start_*) and app.vitals.start.*-style measurement keys.
  • Add backfill_app_vitals_start_screen to write app.vitals.start.screen into contexts.trace.data for qualifying ui.load transactions.
  • Add unit tests covering the new screen backfill behavior and guard conditions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread relay-event-normalization/src/event.rs Outdated
Comment thread relay-event-normalization/src/event.rs Outdated
Comment thread relay-event-normalization/src/event.rs Outdated
Comment thread relay-event-normalization/src/event.rs
Comment thread relay-event-normalization/src/event.rs Outdated
@buenaflor buenaflor force-pushed the backfill-app-vitals-start-screen branch from 3141cf6 to 71ca2ea Compare May 8, 2026 16:40
@buenaflor buenaflor force-pushed the backfill-app-vitals-start-screen branch from 71ca2ea to d4fa6e5 Compare May 11, 2026 09:08
@buenaflor buenaflor requested a review from loewenheim May 11, 2026 09:10
@loewenheim
Copy link
Copy Markdown
Contributor

Am I correct in assuming that this is a non-concern for span V2 because everything will already be sent correctly?

@buenaflor
Copy link
Copy Markdown
Contributor Author

Yes, v2 spans already send the correct data so no need to backfill there

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants