-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rcmgr: move StatsTraceReporter to rcmgr package
- Loading branch information
Showing
8 changed files
with
77 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
p2p/host/resource-manager/obs/stats_test.go → p2p/host/resource-manager/stats_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters