open-telemetry / open-telemetry/opentelemetry-java

Figure out how to use AnchoredClock for exemplar measurements.

Open
#3,691 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
Java
Stars
2.5k
Forks
1k
Avg merge
3d 17h
Merged PRs (30d)
58

Description

Exemplars (especially those sampled during an active trace), should be able to grab wall-clock time @ nanosecond resolution from an AnchoredClock to line up w/ traces.

Currently, they (will) call Clock.now(), but against the default system clock which is millisecond resolution and possibly expensive.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how exemplars obtain their timestamps and how AnchoredClock and Clock.now() are used. Determine how sampled exemplars, especially those inside active traces, can use the anchored wall clock at nanosecond resolution without relying on the default millisecond-resolution system clock. Done means exemplar timestamps line up with traces while avoiding the stated clock limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability-sre
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.