@@ -186,8 +186,8 @@ async def perform_request( # type: ignore[override]
186
186
retry_on_timeout : Union [bool , DefaultType ] = DEFAULT ,
187
187
request_timeout : Union [Optional [float ], DefaultType ] = DEFAULT ,
188
188
client_meta : Union [Tuple [Tuple [str , str ], ...], DefaultType ] = DEFAULT ,
189
- endpoint_id : Union [str , DefaultType ] = DEFAULT ,
190
- path_parts : Union [Mapping [str , str ], DefaultType ] = DEFAULT ,
189
+ endpoint_id : Optional [str ] = None ,
190
+ path_parts : Optional [Mapping [str , str ]] = None ,
191
191
) -> TransportApiResponse :
192
192
"""
193
193
Perform the actual request. Retrieve a node from the node
@@ -217,10 +217,11 @@ async def perform_request( # type: ignore[override]
217
217
Used for OpenTelemetry instrumentation.
218
218
:returns: Tuple of the :class:`elastic_transport.ApiResponseMeta` with the deserialized response.
219
219
"""
220
+ path_parts = path_parts if path_parts is not None else {}
220
221
with self .otel .span (
221
222
method ,
222
- endpoint_id = resolve_default ( endpoint_id , None ) ,
223
- path_parts = resolve_default ( path_parts , {}) ,
223
+ endpoint_id = endpoint_id ,
224
+ path_parts = path_parts ,
224
225
) as otel_span :
225
226
response = await self ._perform_request (
226
227
method ,
0 commit comments