-
Notifications
You must be signed in to change notification settings - Fork 835
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
Add a way to compensate for clock skew #1728
Comments
I guess option might be to modify /~https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-core/src/common/time.ts along these lines:
|
Similar discussions have come up here: #852. |
Facing same issue while instrumenting my FE app with SigNoz.io. |
Related issue (not specific to JS) |
If the system clock on computer is out of sync from others it can cause problems. This is most likely to be an issue in the browser, where users are less likely to sync with time servers.
Our browser app already has a system to calculate clock skew between client and server using an NTP based system, so simply having an API to report clock skew in milliseconds to the OpenTelemetry client library would work for us.
Other more flexible solutions could work as well. e.g. see #1652
Note however that we do not know the clock skew at the time the telemetry library starts, and the clock skew can vary if the user adjusts their clock or whatever. So we periodically re-calculate clock skew and would want to periodically update the clock skew used in by opentelemetry.
The text was updated successfully, but these errors were encountered: