Expand description
Per-node state and shared tracer state
Every Cardano node that connects to hermod-tracer gets a NodeState
instance, which holds:
- A unique
NodeId(the socket path orip:portof the connection) - A URL-safe
NodeSlugderived from the node’s display name for Prometheus routes - A dedicated
prometheus::Registrythat accumulates EKG metrics for that node - The connection timestamp
All active nodes are tracked in the shared TracerState, which is
Arc-cloned across every connection-handling task.
Structs§
- Node
State - All state associated with one connected node
- Tracer
State - State shared across all connections
Functions§
- slugify
- Convert an arbitrary string into a URL-safe slug:
lowercase, replace non-alphanumeric chars with
-, collapse runs of-.