Title: Session seq is raw epoch millis; duration is masked with Math.abs · Issue #5580 · getsentry/sentry-java · GitHub
Open Graph Title: Session seq is raw epoch millis; duration is masked with Math.abs · Issue #5580 · getsentry/sentry-java
X Title: Session seq is raw epoch millis; duration is masked with Math.abs · Issue #5580 · getsentry/sentry-java
Description: Audit finding C2 — theoretical, LOW-MEDIUM. Session uses raw epoch millis for seq and Math.abs for duration (sentry/src/main/java/io/sentry/Session.java): seq is set from getSequenceTimestamp(), which returns timestamp.getTime() (raw epo...
Open Graph Description: Audit finding C2 — theoretical, LOW-MEDIUM. Session uses raw epoch millis for seq and Math.abs for duration (sentry/src/main/java/io/sentry/Session.java): seq is set from getSequenceTimestamp(), wh...
X Description: Audit finding C2 — theoretical, LOW-MEDIUM. Session uses raw epoch millis for seq and Math.abs for duration (sentry/src/main/java/io/sentry/Session.java): seq is set from getSequenceTimestamp(), wh...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/5580
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Session seq is raw epoch millis; duration is masked with Math.abs","articleBody":"Audit finding **C2 — theoretical, LOW-MEDIUM**.\n\n`Session` uses raw epoch millis for `seq` and `Math.abs` for duration (`sentry/src/main/java/io/sentry/Session.java`):\n\n* `seq` is set from `getSequenceTimestamp()`, which returns `timestamp.getTime()` (raw epoch millis) — `Session.java:309`, invoked from the session-update path at `:227`. A backward clock step between updates → the newer update has a smaller `seq` → the server can discard the latest session state (lost end/error counts).\n* `calculateDurationTime` uses ``` Math.abs``(timestamp.getTime() - started.getTime()) ``` (`Session.java:240`), which masks negative durations rather than surfacing them.\n\nSource: getsentry/sentry-java#5530 §C2.\n\n## Decision\n\nMoved to v9 on 2026-11-12. The `seq` fix can change which session update the server keeps after a backward clock step, which can move crash-free rate. The duration fix changes the reported session duration. Both are release-health metrics.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-06-22T09:05:05Z","url":"https://github.com/getsentry/sentry-java/issues/5580"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bd8c5d7b-f03e-0e46-296d-e00aa44c30b0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A502:3AACE0:2C3A7A:3D6235:6B046AD4 |
| html-safe-nonce | 0f412551cf13d9463e933a36407fd5b902077e39d09d80f67bacca4689335a86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTAyOjNBQUNFMDoyQzNBN0E6M0Q2MjM1OjZCMDQ2QUQ0IiwidmlzaXRvcl9pZCI6IjQ4NjExNDA0MzA4OTg4ODMyODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 54b6955bfaafa6f44c15a51996d5f0f34465c7b499bdbf9f6af223e5111cc4e5 |
| hovercard-subject-tag | issue:4715080438 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/5580/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a0b4d105a033a2447dd51a558afa7e45dab3be87a6966cda109de3b83583e1c/getsentry/sentry-java/issues/5580 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a0b4d105a033a2447dd51a558afa7e45dab3be87a6966cda109de3b83583e1c/getsentry/sentry-java/issues/5580 |
| og:image:alt | Audit finding C2 — theoretical, LOW-MEDIUM. Session uses raw epoch millis for seq and Math.abs for duration (sentry/src/main/java/io/sentry/Session.java): seq is set from getSequenceTimestamp(), wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | runningcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width