mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-04 09:05:59 +08:00
prome
This commit is contained in:
@@ -69,7 +69,7 @@ func (rpc *rpcChat) Run() {
|
||||
|
||||
var grpcOpts []grpc.ServerOption
|
||||
if config.Config.Prometheus.Enable {
|
||||
grpcOpts = append(grpcOpts, promePkg.UnaryServerInterceptorProme)
|
||||
grpcOpts = append(grpcOpts, grpc.UnaryInterceptor(promePkg.UnaryServerInterceptorProme))
|
||||
}
|
||||
srv := grpc.NewServer(grpcOpts...)
|
||||
defer srv.GracefulStop()
|
||||
|
||||
Reference in New Issue
Block a user