14 """Channelz debug service implementation in gRPC Python."""
16 from envoy.service.status.v3
import csds_pb2
17 from envoy.service.status.v3
import csds_pb2_grpc
23 csds_pb2_grpc.ClientStatusDiscoveryServiceServicer):
24 """CSDS Servicer works for both the sync API and asyncio API."""
28 client_config = csds_pb2.ClientConfig.FromString(
29 cygrpc.dump_xds_configs())
30 response = csds_pb2.ClientStatusResponse()
31 response.config.append(client_config)
36 for request
in request_iterator:
37 yield ClientStatusDiscoveryServiceServicer.FetchClientStatus(
42 """Register CSDS servicer to a server.
44 CSDS is part of xDS protocol used to expose in-effective traffic
45 configuration (or xDS resources). It focuses on simplify the debugging of
46 unexpected routing behaviors, which could be due to a misconfiguration,
47 unhealthy backends or issues in the control or data plane.
50 server: A gRPC server to which the CSDS service will be added.
52 csds_pb2_grpc.add_ClientStatusDiscoveryServiceServicer_to_server(
56 __all__ = [
'ClientStatusDiscoveryServiceServicer',
'add_csds_servicer']