Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cardano.Node.Tracing.StateRep
Contents
Synopsis
- data AddedToCurrentChain = AddedToCurrentChain !EpochNo !SlotNo !SyncPercentage
- data InitChainSelection
- data NodeState
- data OpeningDbs
- = StartedOpeningImmutableDB
- | OpenedImmutableDB (WithOrigin SlotNo) ChunkNo
- | StartedOpeningVolatileDB
- | OpenedVolatileDB
- | StartedOpeningLgrDB
- | OpenedLgrDB
- data Replays
- = ReplayFromGenesis (WithOrigin SlotNo)
- | ReplayFromSnapshot SlotNo (WithOrigin SlotNo) (WithOrigin SlotNo)
- | ReplayedBlock SlotNo (WithOrigin SlotNo) (WithOrigin SlotNo)
- data StartupState
- = StartupSocketConfigError Text
- | StartupDBValidation
- | NetworkConfigUpdate
- | NetworkConfigUpdateError Text
- | P2PWarning
- | WarningDevelopmentNodeToNodeVersions [NodeToNodeVersion]
- | WarningDevelopmentNodeToClientVersions [NodeToClientVersion]
- traceNodeStateChainDB :: SomeConsensusProtocol -> Trace IO NodeState -> TraceEvent blk -> IO ()
- traceNodeStateStartup :: Trace IO NodeState -> StartupTrace blk -> IO ()
- traceNodeStateShutdown :: Trace IO NodeState -> ShutdownTrace -> IO ()
Documentation
data AddedToCurrentChain Source #
Constructors
AddedToCurrentChain !EpochNo !SlotNo !SyncPercentage |
Instances
FromJSON AddedToCurrentChain Source # | |
Defined in Cardano.Node.Tracing.StateRep Methods parseJSON :: Value -> Parser AddedToCurrentChain parseJSONList :: Value -> Parser [AddedToCurrentChain] | |
ToJSON AddedToCurrentChain Source # | |
Defined in Cardano.Node.Tracing.StateRep Methods toJSON :: AddedToCurrentChain -> Value # toEncoding :: AddedToCurrentChain -> Encoding toJSONList :: [AddedToCurrentChain] -> Value toEncodingList :: [AddedToCurrentChain] -> Encoding omitField :: AddedToCurrentChain -> Bool | |
Generic AddedToCurrentChain Source # | |
Defined in Cardano.Node.Tracing.StateRep Methods from :: AddedToCurrentChain -> Rep AddedToCurrentChain x Source # to :: Rep AddedToCurrentChain x -> AddedToCurrentChain Source # | |
NFData AddedToCurrentChain Source # | |
Defined in Cardano.Node.Tracing.StateRep Methods rnf :: AddedToCurrentChain -> () Source # | |
type Rep AddedToCurrentChain Source # | |
Defined in Cardano.Node.Tracing.StateRep |
data InitChainSelection Source #
Constructors
InitChainStartedSelection | |
InitChainSelected |
Instances
The representation of the current state of node. All node states prior to tracing system going online are effectively invisible.
Constructors
Instances
data OpeningDbs Source #
Constructors
StartedOpeningImmutableDB | |
OpenedImmutableDB (WithOrigin SlotNo) ChunkNo | |
StartedOpeningVolatileDB | |
OpenedVolatileDB | |
StartedOpeningLgrDB | |
OpenedLgrDB |
Instances
Constructors
ReplayFromGenesis (WithOrigin SlotNo) | |
ReplayFromSnapshot SlotNo (WithOrigin SlotNo) (WithOrigin SlotNo) | |
ReplayedBlock SlotNo (WithOrigin SlotNo) (WithOrigin SlotNo) |
Instances
data StartupState Source #
Constructors
StartupSocketConfigError Text | |
StartupDBValidation | |
NetworkConfigUpdate | |
NetworkConfigUpdateError Text | |
P2PWarning | |
WarningDevelopmentNodeToNodeVersions [NodeToNodeVersion] | |
WarningDevelopmentNodeToClientVersions [NodeToClientVersion] |
Instances
traceNodeStateChainDB :: SomeConsensusProtocol -> Trace IO NodeState -> TraceEvent blk -> IO () Source #
traceNodeStateStartup :: Trace IO NodeState -> StartupTrace blk -> IO () Source #
traceNodeStateShutdown :: Trace IO NodeState -> ShutdownTrace -> IO () Source #
Orphan instances
FromJSON ChunkNo Source # | |
Methods parseJSON :: Value -> Parser ChunkNo parseJSONList :: Value -> Parser [ChunkNo] omittedField :: Maybe ChunkNo | |
ToJSON ChunkNo Source # | |
Methods toEncoding :: ChunkNo -> Encoding toJSONList :: [ChunkNo] -> Value toEncodingList :: [ChunkNo] -> Encoding | |
Generic NodeToClientVersion Source # | |
Generic NodeToNodeVersion Source # | |
NFData ChunkNo Source # | |
NFData NodeToClientVersion Source # | |
NFData NodeToNodeVersion Source # | |