Struct libp2p::metrics::Metrics [−][src]
pub struct Metrics { /* fields omitted */ }
Expand description
Set of Swarm and protocol metrics derived from emitted events.
Implementations
Create a new set of Swarm and protocol Metrics
.
use open_metrics_client::registry::Registry;
use libp2p_metrics::Metrics;
let mut registry = Registry::default();
let metrics = Metrics::new(&mut registry);
Trait Implementations
Record the given event.
Record the given event.
Record the given event.