Skip to content

Refactor Elasticsearch Log Exporter to use Synchronous HTTP methods #484

@MarkSeufert

Description

@MarkSeufert

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions