Skip to main content

Module connection_metrics

Module connection_metrics 

Source
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Β§

ConnectionErrorLabels πŸ”’
RemoteVersionMetricLabels πŸ”’
RemoteVersionOutcomeGuard πŸ”’
Records exactly one terminal outcome after Zebra decodes a remote Version message.

EnumsΒ§

ConnectionDirection πŸ”’

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.