Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Make Span start/end times be high-resolution timestamps #272

Open
@draffensperger

Description

@draffensperger

Currently the start and end times in the Span interface use the Date 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions