Expand description
Bounded metrics for Zebraβs peer connection lifecycle.
Keeping these metrics at the crate root prevents address-book and peer-set code from reaching through peer implementation details.
StructsΒ§
- Connection
Error πLabels - Remote
Version πMetric Labels - Remote
Version πOutcome Guard - Records exactly one terminal outcome after Zebra decodes a remote
Versionmessage.
EnumsΒ§
- Connection
Direction π
ConstantsΒ§
- CONNECTION_
ATTEMPTS_ πTOTAL - CONNECTION_
OUTCOMES_ πTOTAL - REMOTE_
VERSION_ πMESSAGES_ TOTAL - REMOTE_
VERSION_ πOUTCOMES_ TOTAL
FunctionsΒ§
- address_
family_ πlabel - classify_
connection_ πerror - classify_
io_ πerror - connection_
labels π - handshake_
error_ πoutcome - implementation_
label π - io_
error_ πoutcome - network_
kind_ πlabel - Returns a bounded metrics label for
network. - record_
connection_ πattempt_ finished - Records the terminal result of a TCP connection and Zcash handshake attempt.
- record_
connection_ πattempt_ started - Records that Zebra started a TCP connection attempt.
- record_
inbound_ πconnection_ rejected - Records an inbound TCP connection that Zebra rejected before its Zcash handshake.