pull/351/head
wangchuxiao 2 years ago
parent 9afaba4382
commit 7f1acb4532

@ -126,6 +126,8 @@ func (rpc *rpcAuth) Run() {
promePkg.NewGrpcRequestCounter() promePkg.NewGrpcRequestCounter()
promePkg.NewGrpcRequestFailedCounter() promePkg.NewGrpcRequestFailedCounter()
promePkg.NewGrpcRequestSuccessCounter() promePkg.NewGrpcRequestSuccessCounter()
promePkg.NewUserRegisterCounter()
promePkg.NewUserLoginCounter()
grpcOpts = append(grpcOpts, grpc.UnaryInterceptor(promePkg.UnaryServerInterceptorProme)) grpcOpts = append(grpcOpts, grpc.UnaryInterceptor(promePkg.UnaryServerInterceptorProme))
} }
srv := grpc.NewServer(grpcOpts...) srv := grpc.NewServer(grpcOpts...)

Loading…
Cancel
Save