config path

This commit is contained in:
wangchuxiao 2023-02-23 19:44:43 +08:00
parent 9f8833baa1
commit c74841fd96

View File

@ -43,7 +43,7 @@ func start(rpcPorts []int, rpcRegisterName string, prometheusPorts []int, rpcFn
prome.NewGrpcRequestFailedCounter()
prome.NewGrpcRequestSuccessCounter()
options = append(options, []grpc.ServerOption{
grpc.UnaryInterceptor(prome.UnaryServerInterceptorPrometheus),
//grpc.UnaryInterceptor(prome.UnaryServerInterceptorPrometheus),
grpc.StreamInterceptor(grpcPrometheus.StreamServerInterceptor),
grpc.UnaryInterceptor(grpcPrometheus.UnaryServerInterceptor),
}...)