跳转到主要内容

一组管理服务

项目描述

调试gRPC库可能是一个复杂的任务。有许多配置和内部状态,这些都会影响库的行为。此Python包将是一个收集暴露调试信息的admin服务的集合。目前,它包括

  • 通道跟踪度量(grpcio-channelz)

  • 客户端状态发现服务(grpcio-csds)

以下是在“localhost:50051”上创建admin服务器的代码片段:

server = grpc.server(ThreadPoolExecutor()) port = server.add_insecure_port('localhost:50051') grpc_admin.add_admin_servicers(self._server) server.start()

欢迎使用CLI工具“grpcdebug”探索admin服务: https://github.com/grpc-ecosystem/grpcdebug

对于任何问题或建议,请发送到 https://github.com/grpc/grpc/issues