8000 Implement higher precision clock than time_ns · Issue #4367 · open-telemetry/opentelemetry-python · GitHub
[go: up one dir, main page]

Skip to content
Implement higher precision clock than time_ns #4367
Open
@lzchen

Description

@lzchen

Followup to #1594

Currently, we use time_ns() to denote current time in ns -> like here

According to Pep0564, the precision varies based off of OS (with testing the average step is that of ~1ms in Windows). Java has implemented an AnchoredClock class which provides much more precise readings of ns (100~ns). We might want to do something similar in our SDKs.

Relevant issue: open-telemetry/semantic-conventions#1621 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsdkAffects the SDK package.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0