mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-09 11:35:59 +08:00
prome
This commit is contained in:
@@ -72,7 +72,7 @@ func (s *groupServer) 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(options...)
|
||||
defer srv.GracefulStop()
|
||||
|
||||
Reference in New Issue
Block a user