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

[Gossipsub] Add optional metrics #2235

Closed
wants to merge 13 commits into from
6 changes: 6 additions & 0 deletions protocols/gossipsub/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
- Add an event to register peers that do not support the gossipsub protocol
[PR 2241](https://github.com/libp2p/rust-libp2p/pull/2241)

- Adds optional metrics for tracking mesh and peer behaviour.
[PR 2235](https://github.com/libp2p/rust-libp2p/pull/2235)

- Make default features of `libp2p-core` optional.
[PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)

- Make default features of `libp2p-core` optional.
[PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)

Expand Down
5 changes: 5 additions & 0 deletions protocols/gossipsub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
libp2p-swarm = { version = "0.31.0-rc.1", path = "../../swarm" }
libp2p-core = { version = "0.30.0-rc.1", path = "../../core", default-features = false }
libp2p-metrics = { path = "../../misc/metrics"}
bytes = "1.0"
byteorder = "1.3.4"
fnv = "1.0.7"
Expand All @@ -27,6 +28,10 @@ smallvec = "1.6.1"
prost = "0.9"
hex_fmt = "0.3.0"
regex = "1.4.0"
# Metrics dependencies
open-metrics-client = {path = "../../../rust-open-metrics-client"}
strum = "0.21"
strum_macros = "0.21"

[dev-dependencies]
async-std = "1.6.3"
Expand Down
Loading