@@ -334,7 +334,7 @@ def _process_bulk_chunk(
334334 """
335335 Send a bulk request to elasticsearch and process the output.
336336 """
337- with client ._otel .use_span (otel_span ):
337+ with client ._base_client . _otel .use_span (otel_span ):
338338 if isinstance (ignore_status , int ):
339339 ignore_status = (ignore_status ,)
340340
@@ -416,9 +416,9 @@ def streaming_bulk(
416416 :arg yield_ok: if set to False will skip successful documents in the output
417417 :arg ignore_status: list of HTTP status code that you want to ignore
418418 """
419- with client ._otel .helpers_span (span_name ) as otel_span :
419+ with client ._base_client . _otel .helpers_span (span_name ) as otel_span :
420420 client = client .options ()
421- client ._client_meta = (("h" , "bp" ),)
421+ client ._base_client . _client_meta = (("h" , "bp" ),)
422422
423423 if isinstance (retry_on_status , int ):
424424 retry_on_status = (retry_on_status ,)
@@ -608,7 +608,7 @@ def _setup_queues(self) -> None:
608608 ] = Queue (max (queue_size , thread_count ))
609609 self ._quick_put = self ._inqueue .put
610610
611- with client ._otel .helpers_span ("helpers.parallel_bulk" ) as otel_span :
611+ with client ._base_client . _otel .helpers_span ("helpers.parallel_bulk" ) as otel_span :
612612 pool = BlockingPool (thread_count )
613613
614614 try :
@@ -711,7 +711,7 @@ def pop_transport_kwargs(kw: MutableMapping[str, Any]) -> Dict[str, Any]:
711711 client = client .options (
712712 request_timeout = request_timeout , ** pop_transport_kwargs (kwargs )
713713 )
714- client ._client_meta = (("h" , "s" ),)
714+ client ._base_client . _client_meta = (("h" , "s" ),)
715715
716716 # Setting query={"from": ...} would make 'from' be used
717717 # as a keyword argument instead of 'from_'. We handle that here.
0 commit comments