cardano-node-8.7.2: The cardano full node
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Node.Tracing.Tracers.ForgingThreadStats

Synopsis

Documentation

data ForgingStats Source #

This structure stores counters of blockchain-related events, per individual thread in fsStats.

Instances

Instances details
LogFormatting ForgingStats Source # 
Instance details

Defined in Cardano.Node.Tracing.Tracers.ForgingThreadStats

Methods

forMachine :: DetailLevel -> ForgingStats -> Object

forHuman :: ForgingStats -> Text

asMetrics :: ForgingStats -> [Metric]

MetaTrace ForgingStats Source # 
Instance details

Defined in Cardano.Node.Tracing.Tracers.ForgingThreadStats

Methods

namespaceFor :: ForgingStats -> Namespace ForgingStats

severityFor :: Namespace ForgingStats -> Maybe ForgingStats -> Maybe SeverityS

privacyFor :: Namespace ForgingStats -> Maybe ForgingStats -> Maybe Privacy

detailsFor :: Namespace ForgingStats -> Maybe ForgingStats -> Maybe DetailLevel

documentFor :: Namespace ForgingStats -> Maybe Text

metricsDocFor :: Namespace ForgingStats -> [(Text, Text)]

allNamespaces :: [Namespace ForgingStats]

data ForgeThreadStats Source #

Per-forging-thread statistics.

Constructors

ForgeThreadStats 

Fields

  • ftsNodeCannotForgeNum :: !Int
     
  • ftsNodeIsLeaderNum :: !Int
     
  • ftsBlocksForgedNum :: !Int
     
  • ftsSlotsMissedNum :: !Int

    Potentially missed slots. Note that this is not the same as the number of missed blocks, since this includes all occurrences of not reaching a leadership check decision, whether or not leadership was possible or not.

    Also note that when the aggregate total for this metric is reported in the multi-pool case, it can be much larger than the actual number of slots occurring since node start, for it is a sum total for all threads.

  • ftsLastSlot :: !Int
     

Instances

Instances details
LogFormatting ForgeThreadStats Source # 
Instance details

Defined in Cardano.Node.Tracing.Tracers.ForgingThreadStats

Methods

forMachine :: DetailLevel -> ForgeThreadStats -> Object

forHuman :: ForgeThreadStats -> Text

asMetrics :: ForgeThreadStats -> [Metric]

MetaTrace ForgeThreadStats Source # 
Instance details

Defined in Cardano.Node.Tracing.Tracers.ForgingThreadStats

Methods

namespaceFor :: ForgeThreadStats -> Namespace ForgeThreadStats

severityFor :: Namespace ForgeThreadStats -> Maybe ForgeThreadStats -> Maybe SeverityS

privacyFor :: Namespace ForgeThreadStats -> Maybe ForgeThreadStats -> Maybe Privacy

detailsFor :: Namespace ForgeThreadStats -> Maybe ForgeThreadStats -> Maybe DetailLevel

documentFor :: Namespace ForgeThreadStats -> Maybe Text

metricsDocFor :: Namespace ForgeThreadStats -> [(Text, Text)]

allNamespaces :: [Namespace ForgeThreadStats]