ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Telemetry.Reporters

Description

Bridge boot-time reporters to installed instruments, retaining active credential expiries.

Synopsis

Documentation

data DeferredMetrics Source #

Boot-time reporters retain expiry state before the metric instruments exist.

newDeferredMetrics :: IO UTCTime -> IO DeferredMetrics Source #

Create deferred reporters with a clock read at metric collection.

installMetrics :: DeferredMetrics -> Metrics -> IO () Source #

Install instruments once after boot, including observations received before installation.

deferredBreakerReporter :: DeferredMetrics -> BreakerSource -> BreakerReporter Source #

Record a breaker's state under the given source.

deferredRefreshReporter :: DeferredMetrics -> Ecosystem -> Provider -> RefreshReporter Source #

Use the shared credential's canonical ecosystem as its bounded internal identity, never a label. An absent expiry is no observation. Expired credentials remain until a reported replacement.

deferredMirrorEnqueueFailure :: DeferredMetrics -> IO () Source #

Record one mirror enqueue failure after instrument installation.