3 Star 6 Fork 7

Gitee 极速下载 / Hyperledger fabric

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hyperledger/fabric
Clone or Download
metrics.go 809 Bytes
Copy Edit Raw Blame History
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package comm
import "github.com/hyperledger/fabric/common/metrics"
var (
openConnCounterOpts = metrics.CounterOpts{
Namespace: "grpc",
Subsystem: "comm",
Name: "conn_opened",
Help: "gRPC connections opened. Open minus closed is the active number of connections.",
}
closedConnCounterOpts = metrics.CounterOpts{
Namespace: "grpc",
Subsystem: "comm",
Name: "conn_closed",
Help: "gRPC connections closed. Open minus closed is the active number of connections.",
}
)
func NewServerStatsHandler(p metrics.Provider) *ServerStatsHandler {
return &ServerStatsHandler{
OpenConnCounter: p.NewCounter(openConnCounterOpts),
ClosedConnCounter: p.NewCounter(closedConnCounterOpts),
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/fabric.git
git@gitee.com:mirrors/fabric.git
mirrors
fabric
Hyperledger fabric
v1.4.0

Search

344bd9b3 5694891 D2dac590 5694891