René's URL Explorer Experiment


Title: Clean up the remaining AndroidCurrentDateProvider usages · Issue #6104 · getsentry/sentry-java · GitHub

Open Graph Title: Clean up the remaining AndroidCurrentDateProvider usages · Issue #6104 · getsentry/sentry-java

X Title: Clean up the remaining AndroidCurrentDateProvider usages · Issue #6104 · getsentry/sentry-java

Description: Follow-up to #6102, which deprecates AndroidCurrentDateProvider but migrates nothing. Five internal call sites still use it, each carrying a @SuppressWarnings("deprecation") that points here. Why they should move AndroidCurrentDateProvid...

Open Graph Description: Follow-up to #6102, which deprecates AndroidCurrentDateProvider but migrates nothing. Five internal call sites still use it, each carrying a @SuppressWarnings("deprecation") that points here. Why t...

X Description: Follow-up to #6102, which deprecates AndroidCurrentDateProvider but migrates nothing. Five internal call sites still use it, each carrying a @SuppressWarnings("deprecation") that points h...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clean up the remaining AndroidCurrentDateProvider usages","articleBody":"Follow-up to getsentry/sentry-java#6102, which deprecates `AndroidCurrentDateProvider` but migrates nothing. Five internal call sites still use it, each carrying a `@SuppressWarnings(\"deprecation\")` that points here.\n\n## Why they should move\n\n`AndroidCurrentDateProvider.getCurrentTimeMillis()` is `SystemClock.uptimeMillis()`, which stops advancing while the device is in deep sleep. Any interval measured with it under-reports real elapsed time, so a window looks un-expired long after it actually expired. `MonotonicTicker` is `CLOCK_BOOTTIME` via `SystemClock.elapsedRealtimeNanos()` and keeps counting through deep sleep.\n\n## Call sites\n\n`Debouncer` — `internal/util/Debouncer.java` reads the provider for its window check. Four constructions pass the uptime provider:\n\n* `ViewHierarchyEventProcessor` (2 s window)\n* `ScreenshotEventProcessor` (2 s window)\n* `SystemEventsBreadcrumbsIntegration` (60 s window)\n* `AppComponentsBreadcrumbsIntegration` (60 s window)\n\nThe two 60 s breadcrumb debouncers are the ones that can swallow a real breadcrumb: a trim-memory or connectivity event right after a long Doze can land inside a window that expired hours ago in wall time. The 2 s screenshot and view-hierarchy windows are much harder to hit. Note this is a behavior change, not a rename — the debounce interval starts counting deep sleep.\n\n`AndroidEnvelopeCache` — `currentDateProvider.getCurrentTimeMillis() - sdkInitTimeSpan.getStartUptimeMs()`, the startup-crash detection threshold. Same deep-sleep skew: a crash long after init, with sleep in between, can fall under `startupCrashDurationThresholdMillis` and be written as a startup crash.\n\n### `AndroidEnvelopeCache` cannot move in isolation\n\n`TimeSpan` is documented and implemented on `SystemClock.uptimeMillis()` (`performance/TimeSpan.java:14`, `:45`, `:51`). Moving only the left operand to a `MonotonicTicker` tick would subtract two different clock bases — worse than what is there today. Either move `TimeSpan`'s base along with it, or split this call site into its own issue.\n\n## Out of scope\n\n* `sentry-android-replay`'s `ICurrentDateProvider` consumers — getsentry/sentry-java#5578 / PR #6090.\n* Deleting `AndroidCurrentDateProvider`. The class is `@ApiStatus.Internal` and absent from `sentry-android-core.api`, so removal is not a binary-compat break, but per the project plan removal lands on v9.\n\n## Done when\n\n* No production code references `AndroidCurrentDateProvider`, or the only remaining reference is `AndroidEnvelopeCache` with the `TimeSpan` coupling tracked separately.\n* Every `@SuppressWarnings(\"deprecation\")` added by getsentry/sentry-java#6102, and its comment, is gone.\n* Tests cover a deep-sleep-style jump: real time advances well past the window while the old uptime source would not have.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-09-11T15:37:53Z","url":"https://github.com/getsentry/sentry-java/issues/6104"}

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:ee3d60e3-c0d3-1d39-0ffe-93887ad1c174
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id95AE:DB710:5DF2D:7FCD4:6B0451CB
html-safe-nonce4ffe94768e5fc389e8f90611d5e92250708be2e63b062c3d61cee2e5617f34fe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUFFOkRCNzEwOjVERjJEOjdGQ0Q0OjZCMDQ1MUNCIiwidmlzaXRvcl9pZCI6IjEwNDk2NTcwMTkyOTQwNDQ2MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac74a34a8b8507758c7c711ad12f156e45c6a6fb2e1fda969364531c4b409a8399
hovercard-subject-tagissue:5426171632
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/6104/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4d493cff6e78d419df1fafe68caef01ae33936369b27dd744f6fd6d57c32499c/getsentry/sentry-java/issues/6104
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4d493cff6e78d419df1fafe68caef01ae33936369b27dd744f6fd6d57c32499c/getsentry/sentry-java/issues/6104
og:image:altFollow-up to #6102, which deprecates AndroidCurrentDateProvider but migrates nothing. Five internal call sites still use it, each carrying a @SuppressWarnings("deprecation") that points here. Why t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerunningcode
hostnamegithub.com
expected-hostnamegithub.com
None910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0
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
releasee086f9b7e88322eb2b41885a6ad425b215737fa5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/6104#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6104
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%2F6104
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/6104
Reloadhttps://github.com/getsentry/sentry-java/issues/6104
Reloadhttps://github.com/getsentry/sentry-java/issues/6104
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 requests58 (58)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/6104
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6104
#6738https://github.com/getsentry/sentry-java/pull/6738
Clean up the remaining AndroidCurrentDateProvider usageshttps://github.com/getsentry/sentry-java/issues/6104#top
#6738https://github.com/getsentry/sentry-java/pull/6738
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/6104#issue-5426171632
#6102https://github.com/getsentry/sentry-java/issues/6102
Session Replay drives interval/window math from the wall clock #5578https://github.com/getsentry/sentry-java/issues/5578
fix(replay): Measure recording deadlines on a monotonic clock (JAVA-575) #6090https://github.com/getsentry/sentry-java/pull/6090
Deprecate AndroidCurrentDateProvider in favor of MonotonicTicker #6102https://github.com/getsentry/sentry-java/issues/6102
runningcodehttps://github.com/runningcode
on Sep 11, 2026https://github.com/getsentry/sentry-java/issues/6104#event-30982361031
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Sep 11, 2026https://github.com/getsentry/sentry-java/issues/6104#issuecomment-5636879824
Linear Codehttps://linear.app
JAVA-729https://linear.app/getsentry/issue/JAVA-729
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/6104#event-30982362494
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/6104
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6104
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.