mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-03-10 01:00:41 +08:00
Update readme
This commit is contained in:
parent
31ce836418
commit
5711a2b457
@ -21,11 +21,11 @@ import (
|
||||
)
|
||||
|
||||
func SetupResourceManager() (network.ResourceManager, error) {
|
||||
// Hook up the trace reporter metrics
|
||||
// Hook up the trace reporter metrics. This will expose all opencensus
|
||||
// stats via the default prometheus registry. See https://opencensus.io/exporters/supported-exporters/go/prometheus/ for other options.
|
||||
view.Register(rcmgrObs.DefaultViews...)
|
||||
ocprom.NewExporter(ocprom.Options{
|
||||
Registry: prometheus.DefaultRegisterer.(*prometheus.Registry),
|
||||
Namespace: "rcmgr_trace_metrics",
|
||||
})
|
||||
|
||||
str, err := rcmgrObs.NewStatsTraceReporter()
|
||||
|
Loading…
Reference in New Issue
Block a user