NetNodeObservability extension

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.

on

Properties

eventStream → Stream<ChainEvent>

Available on NetNode, provided by the NetNodeObservability extension

Every event as it happens, on the microtask after the input that caused it. Listening redirects events from the buffer to this broadcast stream until the node is freed, which closes it.
no setter

Methods

events() → List<ChainEvent>

Available on NetNode, provided by the NetNodeObservability extension

Events buffered since the last call. Empty while eventStream is live.
metrics() → String

Available on NetNode, provided by the NetNodeObservability extension

A Prometheus format metrics snapshot.
metricValues() → Map<String, double>

Available on NetNode, provided by the NetNodeObservability extension

metrics as values keyed by sample name.