Open gquintana opened 4 years ago
Pinging @elastic/es-core-features (:Core/Features/Java High Level REST Client)
Is this builder something you could create and inject back to the elasticsearch client via the configuration callback interface? It would require mirroring the defaults from the client (ehhhhhh not great), and potentially wrapping any third-party user callbacks, but it could get you unblocked in the mean time?
Yes, copying code from RestClientBuilder
is a workaround, but not very satisfactory.
Each time we upgrade Elasticsearch client library we must think about resynchronizing code.
A better solution would be to introduce anHttpAsyncClientBuilder
factory which would default to HttpAsyncClientBuilder::create
and could be changed.
Any update on this PR?
The
HttpAsyncClientBuilder
implementation creation is hard coded in https://github.com/elastic/elasticsearch/blob/v7.8.0/client/rest/src/main/java/org/elasticsearch/client/RestClientBuilder.java#L209It prevents using custom implementations like Zipkin one: https://github.com/openzipkin/brave/issues/1226
I would like to be able to replace
with