opentelemetry-js
opentelemetry-js copied to clipboard
Trace Span startTime Precision Recorded in Milliseconds
trafficstars
When creating a new span with the default options like tracer.startSpan() , the time precision of startTime is truncated to milliseconds, as shown in the image below.
Trace libraries in other languages (Go, C#) support up to microseconds.
This is a peculiar behavior that only occurs when using JavaScript.
Additionally, another strange point is that endTime is recorded up to microseconds.
- [x] This only affects the JavaScript OpenTelemetry library
- [ ] This may affect other libraries, but I would like to get opinions here first