opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Trace Span startTime Precision Recorded in Milliseconds

Open uanid opened this issue 1 year ago • 0 comments
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. image

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. image

  • [x] This only affects the JavaScript OpenTelemetry library
  • [ ] This may affect other libraries, but I would like to get opinions here first

uanid avatar Sep 26 '24 05:09 uanid