feat: pprof support.

This commit is contained in:
tx7do
2023-11-06 19:18:36 +08:00
parent 0c75b390be
commit 52d7c62d98
7 changed files with 199 additions and 159 deletions

View File

@@ -103,5 +103,7 @@ func CreateGrpcServer(cfg *conf.Bootstrap, m ...middleware.Middleware) *kratosGr
opts = append(opts, kratosGrpc.Timeout(cfg.Server.Grpc.Timeout.AsDuration()))
}
return kratosGrpc.NewServer(opts...)
srv := kratosGrpc.NewServer(opts...)
return srv
}