Skip to content

Commit 8b4e15c

Browse files
author
Mihir Gore
committed
Add review comments.
1 parent 84c580a commit 8b4e15c

File tree

1 file changed

+4
-12
lines changed
  • instrumentation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/grpcext

1 file changed

+4
-12
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/grpcext/_interceptor.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# limitations under the License.
1414

1515
# pylint:disable=relative-beyond-top-level
16-
# pylint:disable=arguments-differ
1716
# pylint:disable=no-member
18-
# pylint:disable=signature-differs
1917

2018
"""Implementation of gRPC Python interceptors."""
2119

@@ -51,22 +49,16 @@ def __init__(self, method, base_callable, interceptor):
5149
def __call__(
5250
self,
5351
request,
54-
timeout=None,
55-
metadata=None,
56-
credentials=None,
57-
wait_for_ready=None,
58-
compression=None,
52+
**kwargs
5953
):
6054
def invoker(request, metadata):
6155
return self._base_callable(
6256
request,
63-
timeout,
64-
metadata,
65-
credentials,
66-
wait_for_ready,
67-
compression,
57+
**kwargs
6858
)
6959

60+
metadata = kwargs.get("metadata")
61+
timeout = kwargs.get("timeout")
7062
client_info = _UnaryClientInfo(self._method, timeout)
7163
return self._interceptor.intercept_unary(
7264
request, metadata, client_info, invoker

0 commit comments

Comments
 (0)