This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
Make Span
start/end times be high-resolution timestamps
#272
Labels
Currently the
start
andend
times in the Span interface use theDate
type, which is accurate only to milliseconds.But it would be nice to have higher timestamp accuracy as sub-millisecond times can be useful to measure fast events or small differences between client and service spans for an RPC. My suggestion would be to migrate to use the Timestamp interface or a
[seconds, nanos]
tuple.We now have the getTimestampWithProcessHRTime, which would be used to populate the times.
This would be a breaking change, but I think doing it sooner rather than later would reduce the pain of it.
The text was updated successfully, but these errors were encountered: