Skip to content

Commit

Permalink
Fix CreateSession Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ohamuy committed Jun 11, 2021
1 parent 2be9bd5 commit 365e18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/elasticsearch/src/es_log_exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ sdk::common::ExportResult ElasticsearchLogExporter::Export(
}

// Create a connection to the ElasticSearch instance
auto session = http_client_->CreateSession(options_. + std::to_string(options_.port));
auto session = http_client_->CreateSession(options_.host_ + std::to_string(options_.port_));
auto request = session->CreateRequest();

// Populate the request with headers and methods
Expand Down

0 comments on commit 365e18d

Please sign in to comment.