rust-libp2p icon indicating copy to clipboard operation
rust-libp2p copied to clipboard

swarm/: Expose time to establish connection

Open mxinden opened this issue 3 years ago • 0 comments

Description

Expose the time it takes to establish an inbound or outbound connection.

Motivation

Needed for monitoring purposes, e.g. to be exposed to Prometheus via libp2p-metrics. Especially relevant now that we are adding two more transport protocols and thus might want to compare them. #2622 #2289

Open questions

  • Likely best tracked in Pool, thus not requiring Transport to be aware of it.

Are you planning to do it yourself in a pull request?

Likely not.

mxinden avatar Jul 04 '22 06:07 mxinden