Skip to main content

asimov_protocol/
node_metrics.rs

1// This is free and unencumbered software released into the public domain.
2
3use iroh_metrics::{Counter, MetricsGroup};
4
5/// Metrics for the node protocol.
6#[derive(Debug, Default, MetricsGroup)]
7#[metrics(name = "ping")]
8pub struct NodeMetrics {
9    /// The count of valid ping messages sent.
10    pub pings_sent: Counter,
11
12    /// The count of valid ping messages received.
13    pub pings_recv: Counter,
14}