misc/metrics: Add auxiliary crate to record events as OpenMetrics (#2063)

This commit adds an auxiliary crate recording protocol and Swarm events
and exposing them as metrics in the OpenMetrics format.
This commit is contained in:
Max Inden
2021-08-13 22:51:54 +02:00
committed by GitHub
parent ce23cbe76a
commit 98bc5e6486
11 changed files with 1152 additions and 4 deletions

View File

@ -76,6 +76,10 @@ pub use libp2p_kad as kad;
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
#[doc(inline)]
pub use libp2p_mdns as mdns;
#[cfg(feature = "metrics")]
#[cfg_attr(docsrs, doc(cfg(feature = "metrics")))]
#[doc(inline)]
pub use libp2p_metrics as metrics;
#[cfg(feature = "mplex")]
#[cfg_attr(docsrs, doc(cfg(feature = "mplex")))]
#[doc(inline)]