ceremonyclient/go-libp2p/p2p/host/resource-manager/obs/obs.go

19 lines
616 B
Go
Raw Normal View History

2023-08-21 03:50:38 +00:00
// Package obs implements metrics tracing for resource manager
//
// Deprecated: obs is deprecated and the exported types and methods
// are moved to rcmgr package. Use the corresponding identifier in
// the rcmgr package, for example
// obs.NewStatsTraceReporter => rcmgr.NewStatsTraceReporter
package obs
import (
rcmgr "github.com/libp2p/go-libp2p/p2p/host/resource-manager"
)
var MustRegisterWith = rcmgr.MustRegisterWith
// StatsTraceReporter reports stats on the resource manager using its traces.
type StatsTraceReporter = rcmgr.StatsTraceReporter
var NewStatsTraceReporter = rcmgr.NewStatsTraceReporter