Metrics & Monitoring on libp2p

I was told that libp2p already supports Open Census / Open Telemetry. After seeking the multiple repos and this forum, I was able to find a thread that discusses this https://github.com/libp2p/go-libp2p/issues/522,

However, it does seem that besides consensus on using Open Census https://github.com/libp2p/go-libp2p/issues/522#issuecomment-478160559, there hasn’t been any implementation yet, am I seeing that right?

Note: I’m specifically looking for go-libp2p at this point in time.

Found a PR that added OpenCensus to go-libp2p-kad-dht specifically https://github.com/libp2p/go-libp2p-kad-dht/pull/317

Found a PR that added OpenCensus to go-libp2p-pubsub https://github.com/libp2p/go-libp2p-pubsub/pull/174

@lanzafame How can I use https://github.com/libp2p/go-libp2p-kad-dht/pull/317? Do you have an example?

@vyzo how can I use https://github.com/libp2p/go-libp2p-pubsub/pull/174? Do you have an example?

Also relevant to this discussion - OpenTracing API & IPFS