go-libp2p-daemon
go-libp2p-daemon copied to clipboard
Port prometheus to opencensus wrapper
This change also introduces a very naive metricsModules map that collects, by name, all of the modules present in the daemon.
Sorry for the confusion here, @vyzo. @anacrolix and @lanzafame made a compelling argument to switch to OpenCensus and I decided to make the jump before it's too late. Still exposing a prometheus-friendly collection endpoint.
Why not just expose all metrics, all the time? They're suitably name-spaced that choosing which ones to use can be done further down the line by tools better suited for it.
maybe i misunderstood but doesn’t registering them cause them to impact performance? idea was to allow users to selectively not register metrics. definitely down to instrument everything if we don’t mind!
Note CI is failing again.