-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert #3134 - remove anchored clock #3359
Conversation
/easycla |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3359 +/- ##
==========================================
- Coverage 93.16% 92.62% -0.54%
==========================================
Files 229 131 -98
Lines 6658 3201 -3457
Branches 1385 676 -709
==========================================
- Hits 6203 2965 -3238
+ Misses 455 236 -219
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the parameter clock
in the Span constructor is not removed in this PR, this is not a breaking change. LGTM
I considered removing it anyway. Span constructor is not meant to be called directly. But since it isn't causing harm it's fine I think |
This reverts #3134
The change in question used an "anchored clock" to protect against drift between the performance timing API in the browser and the real time from the system clock. Unfortunately it also caused a problem where the times reported by browser instrumentations had invalid durations because the end times were provided manually from the performance timing API.