python-grpc
python-grpc copied to clipboard
grpc channel is usually used with `with` statement like here -> https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter_client_with_options.py#L31 but... ```python import opentracing from grpc_opentracing import open_tracing_client_interceptor from grpc_opentracing.grpcext import intercept_channel from grpc import insecure_channel ic =...
Hi, https://github.com/grpc/grpc/pull/19299 added a handy wait_for_termination method to the grpc.Server interface. It would be cool to implement this in _InterceptorServer and pass through to the underlying server. ... Though looking...
Hi, we've been using `grpcext.intercept_server()` `UnaryServerInterceptor` and inspecting the server's return `code` like this: ```python def intercept_unary(self, request, servicer_context, server_info, handler): try: handler(request, servicer_context) except: code = servicer_context._state.code ... ```...