Skip to content

Cron check-in durations are measured with the wall clock #5579

Closed

Description

@runningcode

Audit finding B4 — actual bug, LOW-MEDIUM.

Cron check-in durations are computed as currentTimeMillis() - start (wall clock):

  • sentry/src/main/java/io/sentry/util/CheckInUtils.java:64
  • Same pattern in SentryCheckInAdvice across sentry-spring, sentry-spring-jakarta, and sentry-spring-7.

Cron jobs run long, giving wide exposure to wall-clock steps over the measured interval → wrong or negative durations reported.

Source: JAVA-557 §B4.

Activity

  1. linear-code commented on Jun 22, 2026

    @linear-code
  2. changed the title [-]Measure cron check-in durations with System.nanoTime()[/-] [+]Cron check-in durations are measured with the wall clock[/+] on Jun 22, 2026
  3. added a commit that references this issue on Jun 24, 2026
    eb334bd
  4. added a commit that references this issue on Jun 24, 2026
    528bdc2
  5. added a commit that references this issue on Jun 24, 2026
    693fc15
  6. github-actions commented on Jun 24, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #5611, which was included in the 8.45.0 release.

  7. self-assigned this
    on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions