Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): Update open-metrics-client requirement from 0.12.0 to 0.13.0 #2355

Merged
merged 4 commits into from
Nov 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 4 additions & 0 deletions misc/metrics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.3.0 [unreleased]

- Update dependencies.

# 0.2.0 [2021-11-16]

- Include gossipsub metrics (see [PR 2316]).
Expand Down
6 changes: 3 additions & 3 deletions misc/metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "libp2p-metrics"
edition = "2018"
description = "Metrics for libp2p"
version = "0.2.0"
version = "0.3.0"
authors = ["Max Inden <[email protected]>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand All @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions misc/metrics/src/kad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,31 @@ 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",
"Number of requests started for a Kademlia query.",
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",
"Number of successful requests of a Kademlia query.",
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",
"Number of failed requests of a Kademlia query.",
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",
Expand Down
4 changes: 4 additions & 0 deletions protocols/gossipsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.35.0 [unreleased]

- Update dependencies.

# 0.34.0 [2021-11-16]

- Add topic and mesh metrics (see [PR 2316]).
Expand Down
4 changes: 2 additions & 2 deletions protocols/gossipsub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand Down Expand Up @@ -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"
Expand Down