Skip to content

fix(metrics)!: exclude the upper bound from Instant metric windows - #118

Merged
julia-shtal merged 1 commit into
devfrom
118-half-open-metric-windows
Sep 15, 2026
Merged

julia-shtal merged 1 commit into
devfrom
118-half-open-metric-windows

Conversation

@julia-shtal

Copy link
Copy Markdown
Owner

The fourteen Instant-windowed queries filtered between :from and :to, but
every caller passes an exclusive bound — toDate + 1 at midnight UTC. A record
stamped on that instant was counted, and for the daily metrics bucketed into a
calendar day outside the requested range, writing a snapshot with no coverage
row. Half-open windows match every metric document and the convention
GitHubPrReviewRepository already applied.

  The fourteen Instant-windowed queries filtered `between :from and :to`, but
  every caller passes an exclusive bound — toDate + 1 at midnight UTC. A record
  stamped on that instant was counted, and for the daily metrics bucketed into a
  calendar day outside the requested range, writing a snapshot with no coverage
  row. Half-open windows match every metric document and the convention
  GitHubPrReviewRepository already applied.
@julia-shtal
julia-shtal merged commit 3f420fb into dev Sep 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant