packages feed

kiroku-metrics 0.1.0.5 → 0.1.0.6

raw patch · 3 files changed

+20/−4 lines, 3 filesdep ~kiroku-storePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: kiroku-store

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,13 @@ # Revision history for kiroku-metrics +## 0.1.0.6 -- 2026-08-13++### Other Changes++* Requires `kiroku-store ^>=0.7`. The fixed subscription metrics schema+  explicitly ignores replay-history retention lifecycle events while composed+  event passthrough still receives them; no `kiroku-metrics` API changed.+ ## 0.1.0.5 -- 2026-08-12  ### Other Changes
kiroku-metrics.cabal view
@@ -1,6 +1,6 @@ cabal-version:   3.0 name:            kiroku-metrics-version:         0.1.0.5+version:         0.1.0.6 synopsis:   Metrics, health, and event-streaming HTTP endpoints for Kiroku @@ -60,7 +60,7 @@     , hasql-pool      >=1.2  && <1.5     , http-types      >=0.12 && <0.13     , kiroku-cli      ^>=0.2-    , kiroku-store    ^>=0.6+    , kiroku-store    ^>=0.7     , stm             >=2.5  && <2.6     , text            >=2.0  && <2.2     , time            >=1.12 && <1.15@@ -102,7 +102,7 @@     , http-client          >=0.7  && <0.8     , http-types           >=0.12 && <0.13     , kiroku-metrics-    , kiroku-store         ^>=0.6+    , kiroku-store         ^>=0.7     , kiroku-test-support  ^>=0.1     , lens                 >=5.2  && <5.4     , scientific           >=0.3  && <0.4@@ -137,7 +137,7 @@     , http-types           >=0.12 && <0.13     , kiroku-cli           ^>=0.2     , kiroku-metrics-    , kiroku-store         ^>=0.6+    , kiroku-store         ^>=0.7     , kiroku-test-support     , lens                 >=5.2  && <5.4     , scientific           >=0.3  && <0.4
src/Kiroku/Metrics/Collector.hs view
@@ -219,6 +219,14 @@         recordPosition km name pos     KirokuEventHardDeleteIssued _ _ ->         bumpCounters km (\c -> c{hardDeletesIssued = c.hardDeletesIssued + 1})+    -- Retention transitions are deliberately passed through without being+    -- converted into the subscription-focused fixed metrics schema. Callers+    -- can consume them from the composed eventHandler.+    KirokuEventHistoryRetentionLeaseAcquired{} -> pure ()+    KirokuEventHistoryRetentionLeaseRenewed{} -> pure ()+    KirokuEventHistoryRetentionLeaseReleased{} -> pure ()+    KirokuEventHistoryRetentionLeasesPruned{} -> pure ()+    KirokuEventHardDeleteHistoryRetentionConflict{} -> pure ()  bumpDbPhase :: SubscriptionDbPhase -> LifecycleCounters -> LifecycleCounters bumpDbPhase phase c = case phase of