marconi-cardano-core-1.2.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Marconi.Cardano.Core.Transformer.WithSyncStats.Backend.Printer

Synopsis

Documentation

data LastSyncStatsOutput #

Constructors

LastSyncStatsOutput LastSyncStats (Maybe NominalDiffTime) 

Instances

Instances details
Pretty LastSyncStatsOutput # 
Instance details

Defined in Marconi.Cardano.Core.Transformer.WithSyncStats.Backend.Printer

Methods

pretty :: LastSyncStatsOutput -> Doc ann

prettyList :: [LastSyncStatsOutput] -> Doc ann

mkLogBackend :: MarconiTrace IO -> NominalDiffTime -> StatsBackend #

Creates a simple pretty-printing backend which prints the number of processed blocks and the number of rollbacks to a given tracer.

Takes a NominalDiffTime which determines how frequently we send stats to Prometheus and a MarconiTrace IO with which it performs the tracing.