|
|
|
@ -13,16 +13,11 @@ |
|
|
|
|
# limitations under the License. |
|
|
|
|
"""Channelz debug service implementation in gRPC Python.""" |
|
|
|
|
|
|
|
|
|
from envoy.service.status.v3 import csds_pb2 |
|
|
|
|
from envoy.service.status.v3 import csds_pb2_grpc |
|
|
|
|
from google.protobuf import json_format |
|
|
|
|
from grpc._cython import cygrpc |
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
from envoy.service.status.v3 import csds_pb2 |
|
|
|
|
from envoy.service.status.v3 import csds_pb2_grpc |
|
|
|
|
except ImportError: |
|
|
|
|
from src.proto.grpc.testing.xds.v3 import csds_pb2 |
|
|
|
|
from src.proto.grpc.testing.xds.v3 import csds_pb2_grpc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ClientStatusDiscoveryServiceServicer( |
|
|
|
|
csds_pb2_grpc.ClientStatusDiscoveryServiceServicer): |
|
|
|
@ -49,7 +44,7 @@ def add_csds_servicer(server): |
|
|
|
|
CSDS is part of xDS protocol used to expose in-effective traffic |
|
|
|
|
configuration (or xDS resources). It focuses on simplify the debugging of |
|
|
|
|
unexpected routing behaviors, which could be due to a misconfiguration, |
|
|
|
|
unhealthy backends or issues in the control or data plane. |
|
|
|
|
unhealthy backends or issues in the control or data plane. |
|
|
|
|
|
|
|
|
|
Args: |
|
|
|
|
server: A gRPC server to which the CSDS service will be added. |
|
|
|
|