You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
The Elasticsearch exporter currently uses asynchronous http requests to communicate with the Elasticsearch instance, where the error and response of the request is received through callback methods. Since the Export() method needs wait for the result of the http request, it has to block until the response is received.
Describe the solution you'd like
Using synchronous http requests will simplify the design of the exporter, since there will no longer be a need for the callback methods. Instead, the http request call would look something like: auto response = session->SendRequestSync();
Additional context
The synchronous functionality is being added in PR #448, which needs to be merged before this issue can be worked on.
Is your feature request related to a problem?
The Elasticsearch exporter currently uses asynchronous http requests to communicate with the Elasticsearch instance, where the error and response of the request is received through callback methods. Since the Export() method needs wait for the result of the http request, it has to block until the response is received.
Describe the solution you'd like
Using synchronous http requests will simplify the design of the exporter, since there will no longer be a need for the callback methods. Instead, the http request call would look something like:
auto response = session->SendRequestSync();
Additional context
The synchronous functionality is being added in PR #448, which needs to be merged before this issue can be worked on.
cc - @alolita @xukaren
The text was updated successfully, but these errors were encountered: