Repository navigation
fix(runtime): expose event replay metrics (v0.1.25.58) - #249
Merged
Merged
Conversation
amavashev
marked this pull request as ready for review
July 14, 2026 19:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /v1/eventsreplays ascycles_events_total{decision="APPLIED",reason="IDEMPOTENT_REPLAY"}cycles_overdraft_incurred_total, so mutation-only observability remains exactly-once0.1.25.58, with the full documentation matrixWhy
Reserve, commit, and release already expose successful replay request traffic with
reason=IDEMPOTENT_REPLAY. Direct-event replays were the remaining asymmetry: they returned the canonical response but emitted nocycles.eventssample, contradicting the counter's every-outcome contract and making replay traffic invisible to operators.Compatibility and performance
This is a metrics-only behavior change. It does not change the protocol schema, HTTP body/status, Redis commands, Lua scripts, ledger state, idempotency storage, evidence, or runtime-event emission. The replay path adds one in-memory Micrometer counter increment; fresh event paths are unchanged.
[benchmark-skip]Validation
RedisReservationDecideEventTest: 30/30 passedMetricsCorrectnessIntegrationTest: 14/14 passed against Testcontainers Rediscycles-protocol@mainresponse contract and 11/11 operation coverage