HotShot icon indicating copy to clipboard operation
HotShot copied to clipboard

[LIBP2P] - Integrate Metrics `NetworkBehaviour` to libp2p

Open bfish713 opened this issue 1 year ago • 0 comments

What is this task and why do we need to work on it?

Libp2p provides a metrics behaviour which can automatically collect some stats for us.

Docs: https://docs.rs/libp2p/latest/libp2p/metrics/index.html Examples: https://github.com/libp2p/rust-libp2p/tree/master/examples/metrics

This should play nicely with our use of tracing, and we can enable the interesting spans in our test environment to try to figure out issues/bottlenecks.

We don't need to create an http service for the metric collections, I think we can just log them for now.

Follow up will be to integrate with the HotShot Metrics

What work will need to be done to complete this task?

No response

Are there any other details to include?

No response

What are the acceptance criteria to close this issue?

Metrics behaviour is added to our composite libp2p behaviour and we have some way to view them.

Branch work will be merged to (if not the default branch)

No response

bfish713 avatar Feb 21 '24 15:02 bfish713