File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
exporters/elasticsearch/src Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,12 @@ class AsyncResponseHandler : public http_client::EventHandler
288288#endif
289289
290290ElasticsearchLogRecordExporter::ElasticsearchLogRecordExporter ()
291- : options_{ElasticsearchExporterOptions ()},
291+ : ElasticsearchLogRecordExporter(ElasticsearchExporterOptions())
292+ {}
293+
294+ ElasticsearchLogRecordExporter::ElasticsearchLogRecordExporter (
295+ const ElasticsearchExporterOptions &options)
296+ : options_{options},
292297 http_client_{ext::http::client::HttpClientFactory::Create ()}
293298#ifdef ENABLE_ASYNC_EXPORT
294299 ,
@@ -301,11 +306,6 @@ ElasticsearchLogRecordExporter::ElasticsearchLogRecordExporter()
301306#endif
302307}
303308
304- ElasticsearchLogRecordExporter::ElasticsearchLogRecordExporter (
305- const ElasticsearchExporterOptions &options)
306- : options_{options}, http_client_{ext::http::client::HttpClientFactory::Create ()}
307- {}
308-
309309std::unique_ptr<sdklogs::Recordable> ElasticsearchLogRecordExporter::MakeRecordable () noexcept
310310{
311311 return std::unique_ptr<sdklogs::Recordable>(new ElasticSearchRecordable ());
You can’t perform that action at this time.
0 commit comments