You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b37cc4c
Browse filesBrowse the repository at this point in the historyBrowse files
docs(time): Steer new measurements at the io.sentry.time clock APIs (#6088)
* docs(time): Steer new measurements at the io.sentry.time clock APIs
Document on each singleton clock's getInstance() that callers should read
the ticker or wall clock off the options object instead, so they get the
per-platform implementation rather than pinning themselves to one. Calling
JavaMonotonicTicker.getInstance() on Android is the trap worth naming: it
stops counting through a device suspend, so intervals spanning a deep sleep
come out short.
Add an AGENTS.md section so new measurement code reaches for io.sentry.time
rather than DateUtils.getCurrentDateTime() or a SentryDateProvider, picks the
abstraction by what the number is for, and treats adding a new abstraction as
a deliberate step rather than a way around an awkward call site.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* docs(time): Shorten the Measuring Time section in AGENTS.md
Name the legacy clock interfaces instead of listing their
implementations, which also covers ICurrentDateProvider. Drop the
table's notes column and the history of why the old types remain, and
cut the two rules to a sentence each. The getInstance() Javadoc already
carries the detail where callers see it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(time): Shorten the getInstance() Javadoc on the clock singletons
Drop the paragraph on when getInstance() may still be called directly.
Only the options accessors and test support do, so it restated the
code. Keep the one reason that matters: JavaMonotonicTicker stops
counting while an Android device is suspended.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
0 commit comments