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 cef4eab
Browse filesBrowse the repository at this point in the historyBrowse files
fix(android): Measure debounce windows on the monotonic ticker (JAVA-729) (#6590)
* fix(android): Measure debounce windows on the monotonic ticker (JAVA-729)
Debouncer read AndroidCurrentDateProvider, which is
SystemClock.uptimeMillis() and stops in deep sleep. A window that
expired while the device slept still looked open, so the first
low-memory or battery breadcrumb after a long Doze could be dropped.
Debouncer now measures its window with a Deadline on
options.getMonotonicTicker(), which is CLOCK_BOOTTIME on Android. The
screenshot, view hierarchy, system events and app components debouncers
all use it.
AndroidEnvelopeCache still uses AndroidCurrentDateProvider: it compares
against TimeSpan's uptime start, so it can't move on its own.
Refs JAVA-729
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* changelog
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,12 @@
5
5
> - Java 8 support will be dropped. SDK 9.0.0 requires Java 11+. See [#6469](https://github.com/getsentry/sentry-java/issues/6469).
6
6
> - The Android `minSdk` will be raised from 21 to 24. See [#5508](https://github.com/getsentry/sentry-java/issues/5508).
7
7
8
+
## Unreleased
9
+
10
+
### Fixes
11
+
12
+
- Android: Count deep sleep in breadcrumb, screenshot and view hierarchy debounce windows, so the first low-memory or battery breadcrumb after a long Doze is no longer dropped ([#6590](https://github.com/getsentry/sentry-java/pull/6590))
0 commit comments