Skip to content

Commit

Permalink
Fix OTLP HTTP exporter without async exporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Nov 15, 2023
1 parent 9b3b057 commit 74175a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exporters/otlp/src/otlp_http_exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ opentelemetry::sdk::common::ExportResult OtlpHttpExporter::Export(
});
return opentelemetry::sdk::common::ExportResult::kSuccess;
#else
opentelemetry::sdk::common::ExportResult result = http_client_->Export(service_request);
opentelemetry::sdk::common::ExportResult result = http_client_->Export(*service_request);
if (result != opentelemetry::sdk::common::ExportResult::kSuccess)
{
OTEL_INTERNAL_LOG_ERROR("[OTLP HTTP Client] ERROR: Export "
Expand Down
2 changes: 1 addition & 1 deletion exporters/otlp/src/otlp_http_log_record_exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ opentelemetry::sdk::common::ExportResult OtlpHttpLogRecordExporter::Export(
});
return opentelemetry::sdk::common::ExportResult::kSuccess;
#else
opentelemetry::sdk::common::ExportResult result = http_client_->Export(service_request);
opentelemetry::sdk::common::ExportResult result = http_client_->Export(*service_request);
if (result != opentelemetry::sdk::common::ExportResult::kSuccess)
{
OTEL_INTERNAL_LOG_ERROR("[OTLP HTTP Client] ERROR: Export "
Expand Down
2 changes: 1 addition & 1 deletion exporters/otlp/src/otlp_http_metric_exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ opentelemetry::sdk::common::ExportResult OtlpHttpMetricExporter::Export(
});
return opentelemetry::sdk::common::ExportResult::kSuccess;
#else
opentelemetry::sdk::common::ExportResult result = http_client_->Export(service_request);
opentelemetry::sdk::common::ExportResult result = http_client_->Export(*service_request);
if (result != opentelemetry::sdk::common::ExportResult::kSuccess)
{
OTEL_INTERNAL_LOG_ERROR("[OTLP HTTP Client] ERROR: Export "
Expand Down

0 comments on commit 74175a3

Please sign in to comment.