Skip to content

chore(metrics): Collect test metric to validate sleep clock drift fix - #127562

Merged
Lms24 merged 2 commits into
masterfrom
lms/chore-emit-test-metric-clock-drift
Oct 16, 2026
Merged

Lms24 merged 2 commits into
masterfrom
lms/chore-emit-test-metric-clock-drift

Conversation

@Lms24

@Lms24 Lms24 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

This PR adds a test metric that I don't plan on keeping around for the long run. SDK version 11.6.0 shipped a fix to detect and correct clock drift on telemetry timestamps when devices go to sleep.

When we emitted a new metric a while ago, we saw a bunch of metric emissions happening much earlier than that metric was even deployed. This PR aims to repeat this to validate that the SDK no longer emits such early timestamps.
Best to test this with actual users' browsers, since sleep drift varies greatly across devices.

If reviewers have too many concerns with this, let me know, otherwise, I'd plan to remove this after a day of testing. The metric is emitted when clicking an issue on the issues feed, since it's one of the most visited pages and clicks can happen long after page load (e.g. after the device woke up), unlike emitting on page load.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 15, 2026
@Lms24 Lms24 self-assigned this Oct 15, 2026
@Lms24
Lms24 marked this pull request as ready for review October 15, 2026 16:00
@Lms24
Lms24 requested a review from a team as a code owner October 15, 2026 16:00
Emitting on page load can't catch drift, since the clock only drifts
after the tab has been open across a sleep. Emit on every click on an
issue row instead.

Co-Authored-By: Claude <noreply@anthropic.com>

@cvxluo cvxluo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

seems fine to me

@Lms24
Lms24 merged commit 42a3b91 into master Oct 16, 2026
77 checks passed
@Lms24
Lms24 deleted the lms/chore-emit-test-metric-clock-drift branch October 16, 2026 06:28
Lms24 added a commit that referenced this pull request Oct 16, 2026
…rift fix (#127562)" (#127753)

Reverts #127562, which removes the temporary `issues.list.issue-clicked`
test metric from the issue stream row click handler. The metric was only
meant to run briefly to check the SDK's sleep clock drift fix.

This branch was successfully deployed

1 active deployment
Preview — 5d92b1d5 Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants