Skip to content

fix(metrics): round Redis TimeSeries timestamps to bucket boundaries#542

Merged
pavelzotikov merged 3 commits intomasterfrom
fix/redis-ts-bucket-timestamps
Apr 14, 2026
Merged

fix(metrics): round Redis TimeSeries timestamps to bucket boundaries#542
pavelzotikov merged 3 commits intomasterfrom
fix/redis-ts-bucket-timestamps

Conversation

@pavelzotikov
Copy link
Copy Markdown
Contributor

Use truncated UTC timestamps (start of minute/hour/day) when writing
to TS keys so ON_DUPLICATE SUM correctly accumulates events within
the same bucket instead of creating a separate sample per event.

@pavelzotikov pavelzotikov requested review from e11sy and neSpecc April 14, 2026 16:16
Comment thread workers/grouper/src/index.ts Outdated
neSpecc
neSpecc previously approved these changes Apr 14, 2026
@pavelzotikov pavelzotikov merged commit 152362b into master Apr 14, 2026
5 checks passed
@pavelzotikov pavelzotikov deleted the fix/redis-ts-bucket-timestamps branch April 14, 2026 18:18
pavelzotikov added a commit that referenced this pull request Apr 14, 2026
* feat(workers): catch-unhandled-exceptions (#532)

* feat(workers): add decorator to catch unhandled exceptions and report them to Hawk with worker type context

* fix lint

* Revert "fix lint"

This reverts commit 7a7c0a9.

* Revert "feat(workers): add decorator to catch unhandled exceptions and report them to Hawk with worker type context"

This reverts commit ebb1fd7.

* refactor(runner): add active worker names to HawkCatcher context

* fix(): redis never throws key does not exist (#539)

* fix(metrics): round Redis TimeSeries timestamps to bucket boundaries (#542)

* fix(metrics): round Redis TimeSeries timestamps to bucket boundaries

* refactor(metrics): extract bucketTimestampMs to utils and add unit tests

* fix(metrics): replace magic number 90 with named constant

---------

Co-authored-by: KoshaevEugeny <103786108+akulistus@users.noreply.github.com>
Co-authored-by: e11sy <130844513+e11sy@users.noreply.github.com>
Co-authored-by: Pavel Zotikov <pavelzotikov@gmail.com>
akulistus added a commit that referenced this pull request Apr 15, 2026
* feat(workers): catch-unhandled-exceptions (#532)

* feat(workers): add decorator to catch unhandled exceptions and report them to Hawk with worker type context

* fix lint

* Revert "fix lint"

This reverts commit 7a7c0a9.

* Revert "feat(workers): add decorator to catch unhandled exceptions and report them to Hawk with worker type context"

This reverts commit ebb1fd7.

* refactor(runner): add active worker names to HawkCatcher context

* fix(): redis never throws key does not exist (#539)

* fix(metrics): round Redis TimeSeries timestamps to bucket boundaries (#542)

* fix(metrics): round Redis TimeSeries timestamps to bucket boundaries

* refactor(metrics): extract bucketTimestampMs to utils and add unit tests

* fix(metrics): replace magic number 90 with named constant

* feat(sentry): include message into title (#541)

* feat(sentry): include message into title

* fix(sentry): message is included in title if exception is missing

---------

Co-authored-by: KoshaevEugeny <103786108+akulistus@users.noreply.github.com>
Co-authored-by: e11sy <130844513+e11sy@users.noreply.github.com>
Co-authored-by: Pavel Zotikov <pavelzotikov@gmail.com>
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.

3 participants