Skip to content
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

Merged
merged 7 commits into from Oct 28, 2022
Merged

Conversation

dyladan
Copy link
Member

@dyladan dyladan commented Oct 25, 2022

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.

@dyladan
Copy link
Member Author

dyladan commented Oct 25, 2022

/easycla

@dyladan dyladan marked this pull request as ready for review October 25, 2022 16:30
@dyladan dyladan requested a review from a team as a code owner October 25, 2022 16:30
@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Merging #3359 (9040cf0) into main (f31448e) will decrease coverage by 0.53%.
The diff coverage is n/a.

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     
Impacted Files Coverage Δ
...ackages/opentelemetry-sdk-trace-base/src/Tracer.ts 98.52% <ø> (-0.16%) ⬇️
api/src/platform/node/globalThis.ts 0.00% <0.00%> (-100.00%) ⬇️
api-metrics/src/platform/node/globalThis.ts 0.00% <0.00%> (-100.00%) ⬇️
...s/opentelemetry-core/src/platform/node/sdk-info.ts 0.00% <0.00%> (-100.00%) ⬇️
...opentelemetry-core/src/platform/node/globalThis.ts 0.00% <0.00%> (-100.00%) ⬇️
...pentelemetry-core/src/platform/node/performance.ts 0.00% <0.00%> (-100.00%) ⬇️
.../packages/api-logs/src/platform/node/globalThis.ts 0.00% <0.00%> (-100.00%) ⬇️
...lemetry-resources/src/detectors/ProcessDetector.ts 31.81% <0.00%> (-63.64%) ⬇️
...perimental/packages/otlp-exporter-base/src/util.ts 78.94% <0.00%> (-15.79%) ⬇️
...ckages/opentelemetry-exporter-zipkin/src/zipkin.ts 84.48% <0.00%> (-15.52%) ⬇️
... and 135 more

Copy link
Member

@legendecas legendecas left a 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

@dyladan
Copy link
Member Author

dyladan commented Oct 28, 2022

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

@dyladan dyladan merged commit a3e40da into open-telemetry:main Oct 28, 2022
@dyladan dyladan deleted the revert-3134 branch October 28, 2022 17:01
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.

None yet

4 participants