kiroku-metrics 0.4.0.0 → 0.4.0.1
raw patch · 3 files changed
+24/−7 lines, 3 filesdep ~kiroku-clidep ~kiroku-storePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: kiroku-cli, kiroku-store
API changes (from Hackage documentation)
Files
- CHANGELOG.md +12/−0
- kiroku-metrics.cabal +7/−7
- src/Kiroku/Metrics/Collector.hs +5/−0
CHANGELOG.md view
@@ -1,5 +1,17 @@ # Revision history for kiroku-metrics +## 0.4.0.1 — 2026-10-28++### Other Changes++* Explicitly ignore apply/already-applied maintenance events in subscription+ telemetry; durable compaction evidence remains in the store ledger.++* Handle compaction preview/refusal events explicitly without changing the+ published subscription tracing or metrics schema.++- Require `kiroku-store ^>=0.13.0.0` and `kiroku-cli ^>=0.3.0.0`; the public telemetry/HTTP schema is unchanged.+ ## 0.4.0.0 — 2026-10-26 ### Breaking Changes
kiroku-metrics.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: kiroku-metrics-version: 0.4.0.0+version: 0.4.0.1 synopsis: Metrics, health, and event-streaming HTTP endpoints for Kiroku @@ -69,8 +69,8 @@ , hasql >=1.10 && <1.11 , hasql-pool >=1.2 && <1.5 , http-types >=0.12 && <0.13- , kiroku-cli ^>=0.2.0.11- , kiroku-store ^>=0.12.0.0+ , kiroku-cli ^>=0.3.0.0+ , kiroku-store ^>=0.13.0.0 , network >=3.1 && <3.3 , optparse-applicative >=0.19 && <0.20 , stm >=2.5 && <2.6@@ -127,7 +127,7 @@ , http-client >=0.7 && <0.8 , http-types >=0.12 && <0.13 , kiroku-metrics- , kiroku-store ^>=0.12.0.0+ , kiroku-store ^>=0.13.0.0 , kiroku-test-support ^>=0.1 , lens >=5.2 && <5.4 , scientific >=0.3 && <0.4@@ -172,9 +172,9 @@ , hspec >=2.10 && <2.12 , http-client >=0.7 && <0.8 , http-types >=0.12 && <0.13- , kiroku-cli ^>=0.2.0.11+ , kiroku-cli ^>=0.3.0.0 , kiroku-metrics- , kiroku-store ^>=0.12.0.0+ , kiroku-store ^>=0.13.0.0 , kiroku-test-support , lens >=5.2 && <5.4 , network >=3.1 && <3.3@@ -203,7 +203,7 @@ , base >=4.18 && <5 , bytestring >=0.11 && <0.13 , kiroku-metrics- , kiroku-store ^>=0.12.0.0+ , kiroku-store ^>=0.13.0.0 , kiroku-test-support , stm >=2.5 && <2.6 , text >=2.0 && <2.2
src/Kiroku/Metrics/Collector.hs view
@@ -237,6 +237,11 @@ KirokuEventHistoryRetentionLeaseReleased {} -> pure () KirokuEventHistoryRetentionLeasesPruned {} -> pure () KirokuEventHardDeleteHistoryRetentionConflict {} -> pure ()+ -- Compaction evidence belongs to the ledger, outside subscription telemetry.+ KirokuEventCompactionPreviewed {} -> pure ()+ KirokuEventCompactionRefused {} -> pure ()+ KirokuEventCompactionApplied {} -> pure ()+ KirokuEventCompactionAlreadyApplied {} -> pure () bumpDbPhase :: SubscriptionDbPhase -> LifecycleCounters -> LifecycleCounters bumpDbPhase phase c = case phase of