From 709636ed2f8a2715e9d6c87176499ba77021702c Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Thu, 14 May 2020 15:36:17 -0700 Subject: [PATCH] fix: new version of grpc causes linting issues if these aren't implemented --- .../src/opentelemetry/ext/grpc/grpcext/_interceptor.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/grpcext/_interceptor.py b/ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/grpcext/_interceptor.py index 0cae2cf9fd..74861913b9 100644 --- a/ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/grpcext/_interceptor.py +++ b/ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/grpcext/_interceptor.py @@ -230,6 +230,14 @@ def close(self): ) self._channel.close() + def __enter__(self): + """Enters the runtime context related to the channel object.""" + raise NotImplementedError() + + def __exit__(self, exc_type, exc_val, exc_tb): + """Exits the runtime context related to the channel object.""" + raise NotImplementedError() + def intercept_channel(channel, *interceptors): result = channel