Working on implementing Protocol Tracker

Heyy folks,

I am working on this issue and I have a few questions:

  • Should I make it as an implementation for a struct and print it out as a console log?
  • if I make it like a console, should I implement a counter for the number of nodes connected, is it tracked elsewhere?

I have figured out that I should use Gauge from Prometheus Client, apart from this I have been asked to increment/decrement based on SwarmEvent. I am unable to find the reference to SwarmEvent, It’ll be useful if you can mention it here!

I suggest we move this discussion the the corresponding GitHub issue on rust-libp2p.

1 Like