hs-abci-sdk-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Tendermint.SDK.BaseApp.Metrics

Documentation

data Metrics m a where Source #

Constructors

IncCount :: CountName -> Metrics m ()

Increments the count of a specific message

WithTimer :: HistogramName -> m a -> Metrics m a

Times an action and records it in a histogram

Instances
type DefiningModule Metrics Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Metrics

type DefiningModule Metrics = "Tendermint.SDK.BaseApp.Metrics"

withTimer :: forall r a. MemberWithError Metrics r => HistogramName -> Sem r a -> Sem r a Source #

incCount :: forall r. MemberWithError Metrics r => CountName -> Sem r () Source #