diff --git a/Cargo.toml b/Cargo.toml index 64a621f2..ad55b734 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,10 +73,10 @@ instant = "0.1.11" # Explicit dependency to be used in `wasm-bindgen` feature lazy_static = "1.2" libp2p-core = { version = "0.30.0", path = "core", default-features = false } libp2p-floodsub = { version = "0.32.0", path = "protocols/floodsub", optional = true } -libp2p-gossipsub = { version = "0.34.0", path = "./protocols/gossipsub", optional = true } +libp2p-gossipsub = { version = "0.35.0", path = "./protocols/gossipsub", optional = true } libp2p-identify = { version = "0.32.0", path = "protocols/identify", optional = true } libp2p-kad = { version = "0.33.0", path = "protocols/kad", optional = true } -libp2p-metrics = { version = "0.2.0", path = "misc/metrics", optional = true } +libp2p-metrics = { version = "0.3.0", path = "misc/metrics", optional = true } libp2p-mplex = { version = "0.30.1", path = "muxers/mplex", optional = true } libp2p-noise = { version = "0.33.0", path = "transports/noise", optional = true } libp2p-ping = { version = "0.32.0", path = "protocols/ping", optional = true } diff --git a/misc/metrics/CHANGELOG.md b/misc/metrics/CHANGELOG.md index e50aacfc..49c5d2f4 100644 --- a/misc/metrics/CHANGELOG.md +++ b/misc/metrics/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.3.0 [unreleased] + +- Update dependencies. + # 0.2.0 [2021-11-16] - Include gossipsub metrics (see [PR 2316]). diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index 86e5d042..50fe25e1 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -2,7 +2,7 @@ name = "libp2p-metrics" edition = "2018" description = "Metrics for libp2p" -version = "0.2.0" +version = "0.3.0" authors = ["Max Inden "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -17,12 +17,12 @@ ping = ["libp2p-ping"] [dependencies] libp2p-core = { version = "0.30.0", path = "../../core" } -libp2p-gossipsub = { version = "0.34.0", path = "../../protocols/gossipsub", optional = true } +libp2p-gossipsub = { version = "0.35.0", path = "../../protocols/gossipsub", optional = true } libp2p-identify = { version = "0.32.0", path = "../../protocols/identify", optional = true } libp2p-kad = { version = "0.33.0", path = "../../protocols/kad", optional = true } libp2p-ping = { version = "0.32.0", path = "../../protocols/ping", optional = true } libp2p-swarm = { version = "0.32.0", path = "../../swarm" } -open-metrics-client = "0.12.0" +open-metrics-client = "0.13.0" [dev-dependencies] env_logger = "0.8.1" diff --git a/misc/metrics/src/kad.rs b/misc/metrics/src/kad.rs index 61056f36..05a9e845 100644 --- a/misc/metrics/src/kad.rs +++ b/misc/metrics/src/kad.rs @@ -90,7 +90,7 @@ impl Metrics { Box::new(query_result_get_providers_error.clone()), ); - let query_result_num_requests = + let query_result_num_requests: Family<_, _> = Family::new_with_constructor(|| Histogram::new(exponential_buckets(1.0, 2.0, 10))); sub_registry.register( "query_result_num_requests", @@ -98,7 +98,7 @@ impl Metrics { Box::new(query_result_num_requests.clone()), ); - let query_result_num_success = + let query_result_num_success: Family<_, _> = Family::new_with_constructor(|| Histogram::new(exponential_buckets(1.0, 2.0, 10))); sub_registry.register( "query_result_num_success", @@ -106,7 +106,7 @@ impl Metrics { Box::new(query_result_num_success.clone()), ); - let query_result_num_failure = + let query_result_num_failure: Family<_, _> = Family::new_with_constructor(|| Histogram::new(exponential_buckets(1.0, 2.0, 10))); sub_registry.register( "query_result_num_failure", @@ -114,7 +114,7 @@ impl Metrics { Box::new(query_result_num_failure.clone()), ); - let query_result_duration = + let query_result_duration: Family<_, _> = Family::new_with_constructor(|| Histogram::new(exponential_buckets(0.1, 2.0, 10))); sub_registry.register_with_unit( "query_result_duration", diff --git a/protocols/gossipsub/CHANGELOG.md b/protocols/gossipsub/CHANGELOG.md index d999bca9..9df11a94 100644 --- a/protocols/gossipsub/CHANGELOG.md +++ b/protocols/gossipsub/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.35.0 [unreleased] + +- Update dependencies. + # 0.34.0 [2021-11-16] - Add topic and mesh metrics (see [PR 2316]). diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index 1d496f2c..9eaa5dd6 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -2,7 +2,7 @@ name = "libp2p-gossipsub" edition = "2018" description = "Gossipsub protocol for libp2p" -version = "0.34.0" +version = "0.35.0" authors = ["Age Manning "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -30,7 +30,7 @@ futures-timer = "3.0.2" pin-project = "1.0.8" instant = "0.1.11" # Metrics dependencies -open-metrics-client = "0.12" +open-metrics-client = "0.13" [dev-dependencies] async-std = "1.6.3"