You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(libp2p): track bandwidth per transport protocol stack
Previously one could use the `with_bandwidth_logging` to measure the overall bandwidth usage, only differentiated by inbound and outbound traffic.
With this commit bandwidth can be tracked per transport protocol stack (e.g. `/ip4/tcp`) exposed as Prometheus metrics through `libp2p_metrics::BandwidthMetricTransport`.
```
# HELP libp2p_bandwidth_bytes Bandwidth usage by direction and transport protocols.
# TYPE libp2p_bandwidth_bytes counter
# UNIT libp2p_bandwidth_bytes bytes
libp2p_bandwidth_bytes_total{protocols="/ip4/tcp",direction="Outbound"} 1352
libp2p_bandwidth_bytes_total{protocols="/ip4/tcp",direction="Inbound"} 1484
```
Pull-Request: #4727.
libp2p-relay = { version = "0.17.0", path = "protocols/relay" }
98
98
libp2p-rendezvous = { version = "0.14.0", path = "protocols/rendezvous" }
99
99
libp2p-request-response = { version = "0.26.0", path = "protocols/request-response" }
100
-
libp2p-server = { version = "0.12.3", path = "misc/server" }
100
+
libp2p-server = { version = "0.12.4", path = "misc/server" }
101
101
libp2p-swarm = { version = "0.44.0", path = "swarm" }
102
102
libp2p-swarm-derive = { version = "=0.34.0", path = "swarm-derive" } # `libp2p-swarm-derive` may not be compatible with different `libp2p-swarm` non-breaking releases. E.g. `libp2p-swarm` might introduce a new enum variant `FromSwarm` (which is `#[non-exhaustive]`) in a non-breaking release. Older versions of `libp2p-swarm-derive` would not forward this enum variant within the `NetworkBehaviour` hierarchy. Thus the version pinning is required.
103
103
libp2p-swarm-test = { version = "0.3.0", path = "swarm-test" }
0 commit comments