Skip to content

Conversation

sethfowler-datadog
Copy link
Contributor

Motivation

After looking at the initial view metrics telemetry we've collected so far, I'm a bit concerned that the numbers may be distorted by not including any data about situations where a navigation occurs before the load event has fired. I'd like to try to get at least some data about what's happening in these situations.

Changes

This PR adds a second variant to the initial view metrics telemetry. Now, if PAGE_MAY_EXIT fires with reason UNLOADING before we've send the telemetry, we'll try to send a minimal telemetry message that includes:

  • The timestamp at which the page is unloading.
  • The timestamp at which DOMContentLoaded fired, if it has fired already.

Test instructions

Probably easiest to test this on staging; I'll push it there.

Checklist

  • Tested locally
  • Tested on staging (In progress.)
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.

@sethfowler-datadog sethfowler-datadog requested a review from a team as a code owner August 28, 2025 17:19
@sethfowler-datadog
Copy link
Contributor Author

/to-staging

@dd-devflow-routing-codex
Copy link

dd-devflow-routing-codex bot commented Aug 28, 2025

View all feedbacks in Devflow UI.

2025-08-28 18:25:21 UTC ℹ️ Start processing command /to-staging


2025-08-28 18:25:32 UTC ℹ️ Branch Integration: starting soon, merge expected in approximately 15m11s (p90)

Commit 5c5dfc249c will soon be integrated into staging-35.


2025-08-28 18:37:22 UTC ℹ️ Branch Integration: this commit was successfully integrated

Commit 5c5dfc249c has been merged into staging-35 in merge commit 79e1ba3886.

Check out the triggered pipeline on Gitlab 🦊

If you need to revert this integration, you can use the following command: /code revert-integration -b staging-35

dd-mergequeue bot added a commit that referenced this pull request Aug 28, 2025
…ics-even-when-page-unloads-early (#3808) into staging-35

Integrated commit sha: 5c5dfc2

Co-authored-by: sethfowler-datadog <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant