René's URL Explorer Experiment


Title: Deprecate AndroidCurrentDateProvider in favor of MonotonicTicker · Issue #6102 · getsentry/sentry-java · GitHub

Open Graph Title: Deprecate AndroidCurrentDateProvider in favor of MonotonicTicker · Issue #6102 · getsentry/sentry-java

X Title: Deprecate AndroidCurrentDateProvider in favor of MonotonicTicker · Issue #6102 · getsentry/sentry-java

Description: AndroidCurrentDateProvider is a hazard and should carry a deprecation warning pointing at MonotonicTicker. Why it is a hazard It implements ICurrentDateProvider.getCurrentTimeMillis() with SystemClock.uptimeMillis() — sentry-android-core...

Open Graph Description: AndroidCurrentDateProvider is a hazard and should carry a deprecation warning pointing at MonotonicTicker. Why it is a hazard It implements ICurrentDateProvider.getCurrentTimeMillis() with SystemCl...

X Description: AndroidCurrentDateProvider is a hazard and should carry a deprecation warning pointing at MonotonicTicker. Why it is a hazard It implements ICurrentDateProvider.getCurrentTimeMillis() with SystemCl...

Opengraph URL: https://github.com/getsentry/sentry-java/issues/6102

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecate AndroidCurrentDateProvider in favor of MonotonicTicker","articleBody":"`AndroidCurrentDateProvider` is a hazard and should carry a deprecation warning pointing at `MonotonicTicker`.\n\n## Why it is a hazard\n\nIt implements `ICurrentDateProvider.getCurrentTimeMillis()` with `SystemClock.uptimeMillis()` — `sentry-android-core/src/main/java/io/sentry/android/core/internal/util/AndroidCurrentDateProvider.java:20`. Two problems, neither visible at a call site:\n\n1. **The name lies.** It is not a current date. A field or parameter declared `ICurrentDateProvider` accepts this *or* `CurrentDateProvider` (`System.currentTimeMillis()`, epoch). The two disagree by however long the device has been suspended, and a wrong wiring compiles silently.\n2. `uptimeMillis()` **stops in deep sleep.** Any interval measured with it under-reports real elapsed time, so a window looks un-expired long after it actually expired.\n\n`MonotonicTicker` is the replacement: `CLOCK_BOOTTIME` via `SystemClock.elapsedRealtimeNanos()` on Android, no epoch pretense in the name, and it documents that only differences between two of its own ticks are meaningful.\n\n## Scope\n\nDeprecate only, in one independent PR. Nothing is migrated and nothing is removed — the point is to start the warning cycle.\n\nThe annotation goes on `getInstance()`, not on the type. `build.gradle.kts:107` sets `-Xlint:all -Werror` and the Android modules compile at `sourceCompatibility 1.8`, where javac still warns on an `import` of a deprecated type (JEP 211 elides those only from source 9 on) and an import declaration cannot carry a `@SuppressWarnings`. Deprecating the sole factory method warns every caller just as loudly, and each warning lands somewhere a suppression can go. The type javadoc still names the replacement.\n\nThe five internal call sites get `@SuppressWarnings(\"deprecation\")` to keep `-Werror` green:\n\n* `ViewHierarchyEventProcessor.java:53`, `ScreenshotEventProcessor.java:59`, `SystemEventsBreadcrumbsIntegration.java:302`, `AppComponentsBreadcrumbsIntegration.java:38` — all constructing `Debouncer`\n* `AndroidEnvelopeCache.java:42`\n\n## Relationship to other work\n\nPR getsentry/sentry-java#6043 (getsentry/sentry-java#5574, draft) deprecates this class as one row of a five-row batch that also covers `ICurrentDateProvider`, `CurrentDateProvider`, `DateUtils.getCurrentDateTime()` and `AndroidDateUtils.getCurrentSentryDateTime()`, stacked behind six other PRs. This issue pulls the `AndroidCurrentDateProvider` row out so it can land on its own.\n\nMigrating the call sites off the deprecated provider is deliberately **not** in scope here and needs its own issue. Note that `AndroidEnvelopeCache:75` cannot be migrated in isolation: it subtracts `TimeSpan.getStartUptimeMs()`, and `TimeSpan` is explicitly built on `SystemClock.uptimeMillis()` (`performance/TimeSpan.java:14`), so moving one operand alone would subtract two different clock bases.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-09-11T15:26:01Z","url":"https://github.com/getsentry/sentry-java/issues/6102"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bff96ac5-18a5-2294-e1d4-4a9caf44872a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD012:3C90A4:4642A5:62E6CF:6B0470B7
html-safe-noncef1d3ec450d137e288b8773ff643b08e4c8131c969873893508f7744fb1e38729
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDEyOjNDOTBBNDo0NjQyQTU6NjJFNkNGOjZCMDQ3MEI3IiwidmlzaXRvcl9pZCI6IjExNDg1OTc1MzUxOTIxNTAxOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc6cc78039547bbc57e1cf5b61425452f85665de34af0b0c29d8b4e0efe1532e5
hovercard-subject-tagissue:5426047590
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6102/issue_layout
twitter:imagehttps://opengraph.githubassets.com/65e5e086370c66555f4ec6a088dbbda196ea2359da5794c7c92984a76ce6a437/getsentry/sentry-java/issues/6102
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/65e5e086370c66555f4ec6a088dbbda196ea2359da5794c7c92984a76ce6a437/getsentry/sentry-java/issues/6102
og:image:altAndroidCurrentDateProvider is a hazard and should carry a deprecation warning pointing at MonotonicTicker. Why it is a hazard It implements ICurrentDateProvider.getCurrentTimeMillis() with SystemCl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerunningcode
hostnamegithub.com
expected-hostnamegithub.com
Noneae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecfb5f24c6e01d85f70804652a5107e5cac03a161
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/6102#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6102
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6102
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-java
Reloadhttps://github.com/getsentry/sentry-java/issues/6102
Reloadhttps://github.com/getsentry/sentry-java/issues/6102
Reloadhttps://github.com/getsentry/sentry-java/issues/6102
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues266 (266)https://github.com/getsentry/sentry-java/issues
Pull requests57 (57)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
https://github.com/getsentry/sentry-java
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6102
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6102
#6103https://github.com/getsentry/sentry-java/pull/6103
Deprecate AndroidCurrentDateProvider in favor of MonotonicTickerhttps://github.com/getsentry/sentry-java/issues/6102#top
#6103https://github.com/getsentry/sentry-java/pull/6103
https://github.com/runningcode
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
https://github.com/runningcode
runningcodehttps://github.com/runningcode
on Sep 11, 2026https://github.com/getsentry/sentry-java/issues/6102#issue-5426047590
#6043https://github.com/getsentry/sentry-java/pull/6043
#5574https://github.com/getsentry/sentry-java/issues/5574
runningcodehttps://github.com/runningcode
on Sep 11, 2026https://github.com/getsentry/sentry-java/issues/6102#event-30981688185
runningcodehttps://github.com/runningcode
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Sep 11, 2026https://github.com/getsentry/sentry-java/issues/6102#event-30981689664
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Sep 11, 2026https://github.com/getsentry/sentry-java/issues/6102#issuecomment-5636729274
Linear Codehttps://linear.app
JAVA-728https://linear.app/getsentry/issue/JAVA-728
runningcodehttps://github.com/runningcode
on Sep 11, 2026https://github.com/getsentry/sentry-java/issues/6102#event-30981833818
runningcodehttps://github.com/runningcode
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6103https://github.com/getsentry/sentry-java/pull/6103
on Sep 14, 2026https://github.com/getsentry/sentry-java/issues/6102#event-31106601782
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Sep 16, 2026https://github.com/getsentry/sentry-java/issues/6102#issuecomment-5699824949
GitHub Actionshttps://help.github.com/en/actions
#6103https://github.com/getsentry/sentry-java/pull/6103
8.57.0 releasehttps://github.com/getsentry/sentry-java/releases/tag/8.57.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/6102
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6102
runningcodehttps://github.com/runningcode
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.