-
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
I want to know whether the nanos length returned by the numberToHrtime method is a fixed length? #3459
Comments
The start and end time of the span are calculated by this method. If the precision of js will affect the calculation results here, our duration value will be very inaccurate, In about 1 second, the performance statistics will be affected @legendecas @dyladan |
Duplicate of #2643 for |
|
A bit strange is that nanos have a fractional part. I have never seen this in node.js Also doing a conversion via a |
Avoid using decimals to temporarily solve this problem |
@legendecas should this be closed as a dup of #2643 ? |
Sorry, I might get it wrong in the above statement on |
opentelemetry-js/packages/opentelemetry-core/src/common/time.ts
Line 36 in 369b07e
I saw this method used in many places, so I tested this method in the development environment. I found that sometimes the length of time obtained is unstable. Sometimes the length of the value 'nano' is 9, and sometimes it is 8. Is this normal? My Chrome version is the latest, and this is my screenshot:
The text was updated successfully, but these errors were encountered: