Alter default clock implementation#1487
Merged
breedx-splk merged 2 commits intoopen-telemetry:mainfrom Jan 16, 2026
Merged
Conversation
This was
linked to
issues
Dec 19, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1487 +/- ##
==========================================
- Coverage 64.69% 64.52% -0.18%
==========================================
Files 159 160 +1
Lines 3181 3185 +4
Branches 327 327
==========================================
- Hits 2058 2055 -3
- Misses 1020 1029 +9
+ Partials 103 101 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
26955af to
dc7b233
Compare
dc7b233 to
fd41ed3
Compare
fd41ed3 to
d01d403
Compare
marandaneto
approved these changes
Jan 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Builds on #1486 by altering the default
Clockimplementation used byopentelemetry-android. The approach used is to take a baseline time by subtractingSystemClock.elapsedRealTimeNanosfromSystem.currentTimeMillis, then return the time by addingelapsedRealTimeNanos.This approach works on all the API levels the SDK supports and provides a monotonic wall-clock time.