From 74175a38cb3f3b8dc16a88ab5100bdb7e2c4ca48 Mon Sep 17 00:00:00 2001 From: owent Date: Wed, 15 Nov 2023 21:23:57 +0800 Subject: [PATCH] Fix OTLP HTTP exporter without async exporting. --- exporters/otlp/src/otlp_http_exporter.cc | 2 +- exporters/otlp/src/otlp_http_log_record_exporter.cc | 2 +- exporters/otlp/src/otlp_http_metric_exporter.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exporters/otlp/src/otlp_http_exporter.cc b/exporters/otlp/src/otlp_http_exporter.cc index 3ba0d19424..5b2c664334 100644 --- a/exporters/otlp/src/otlp_http_exporter.cc +++ b/exporters/otlp/src/otlp_http_exporter.cc @@ -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 " diff --git a/exporters/otlp/src/otlp_http_log_record_exporter.cc b/exporters/otlp/src/otlp_http_log_record_exporter.cc index 6e046f888c..de1567a955 100644 --- a/exporters/otlp/src/otlp_http_log_record_exporter.cc +++ b/exporters/otlp/src/otlp_http_log_record_exporter.cc @@ -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 " diff --git a/exporters/otlp/src/otlp_http_metric_exporter.cc b/exporters/otlp/src/otlp_http_metric_exporter.cc index a4a3e3b586..40ed8272f3 100644 --- a/exporters/otlp/src/otlp_http_metric_exporter.cc +++ b/exporters/otlp/src/otlp_http_metric_exporter.cc @@ -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 "