File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
gapic/templates/%namespace/%name_%version/%sub/services/%service/transports Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 33
44{% block content %}
55
6+ import logging
7+ import json # type: ignore
68
79from google.auth.transport.requests import AuthorizedSession # type: ignore
8- import json # type: ignore
910from google.auth import credentials as ga_credentials # type: ignore
1011from google.api_core import exceptions as core_exceptions
1112from google.api_core import retry as retries
4041except AttributeError: # pragma: NO COVER
4142 OptionalRetry = Union[retries.Retry, object, None] # type: ignore
4243
43-
44- import logging
45-
4644try: # pragma: NO COVER
4745 from google.api_core import client_logging # type: ignore
4846 CLIENT_LOGGING_SUPPORTED = True
@@ -263,7 +261,6 @@ class {{service.name}}RestTransport(_Base{{ service.name }}RestTransport):
263261 extra = {
264262 "serviceName": "{{ service.meta.address.proto }}",
265263 "rpcName": "{{ method.name }}",
266- "retryAttempt": 1,
267264 "response": {% if method .output .ident .is_proto_plus_type %} {{ method.output.ident }}.to_json(resp){% else %} json_format.MessageToJson(resp){% endif %} ,
268265 "metadata": str(dict(response.headers)),
269266 },
You can’t perform that action at this time.
0 commit comments