Observability topic
Observability
Typed chain events, pulled from a buffer or pushed through a broadcast stream, and Prometheus metrics on nodes, chains and networked nodes.
Classes
- BlockFinalized
- A block was finalized and applied.
- BlockRejected
- A block failed consensus or state validation.
- ChainEvent
- One event published by a node's event bus. Switch over the subtypes (BlockFinalized, BlockRejected, TxAdmitted, TxRemoved, UnknownEvent) exhaustively; UnknownEvent keeps a newer engine's event kinds readable.
- TxAdmitted
- A transaction entered the mempool.
- TxRemoved
- A transaction left the mempool, included in a block or evicted.
- UnknownEvent
- An event kind this version of the binding does not model. json holds the fields as the engine sent them.
Extensions
- ChainObservability on Chain
- Events and metrics of an assembled chain: every Chain.submit reports a BlockFinalized or a BlockRejected, and the metrics count them.
- NetNodeObservability on NetNode
- Events and metrics of a networked node: a BlockFinalized per committed height, and counters for gossip received, relayed and dropped, timeouts fired and peers banned.
- NodeEvents on Node
- Typed chain events, pulled or pushed.