use shared psrpc utils (#2506)

* use shared psrpc utils

* fix

* deps
This commit is contained in:
Paul Wells
2024-02-24 00:38:49 -08:00
committed by GitHub
parent 013c933636
commit e5b8e25064
10 changed files with 34 additions and 163 deletions
+2 -1
View File
@@ -23,6 +23,7 @@ import (
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/rpc"
)
const (
@@ -108,7 +109,7 @@ func Init(nodeID string, nodeType livekit.NodeType, env string) {
initPacketStats(nodeID, nodeType, env)
initRoomStats(nodeID, nodeType, env)
initPSRPCStats(nodeID, nodeType, env)
rpc.InitPSRPCStats(prometheus.Labels{"node_id": nodeID, "node_type": nodeType.String(), "env": env})
initQualityStats(nodeID, nodeType, env)
}