mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 23:01:33 +00:00
{misc,protocols/gossipsub}: Move to prometheus-client (#2442)
`open-metrics-client` has been accepted as the official Prometheus Rust client and thus renamed to `prometheus-client`. See https://groups.google.com/g/prometheus-developers/c/E67ByGmVQKM
This commit is contained in:
@ -37,7 +37,7 @@ mod ping;
|
||||
mod relay;
|
||||
mod swarm;
|
||||
|
||||
use open_metrics_client::registry::Registry;
|
||||
use prometheus_client::registry::Registry;
|
||||
|
||||
/// Set of Swarm and protocol metrics derived from emitted events.
|
||||
pub struct Metrics {
|
||||
@ -58,7 +58,7 @@ impl Metrics {
|
||||
/// Create a new set of Swarm and protocol [`Metrics`].
|
||||
///
|
||||
/// ```
|
||||
/// use open_metrics_client::registry::Registry;
|
||||
/// use prometheus_client::registry::Registry;
|
||||
/// use libp2p_metrics::Metrics;
|
||||
/// let mut registry = Registry::default();
|
||||
/// let metrics = Metrics::new(&mut registry);
|
||||
|
Reference in New Issue
Block a user