From b006b8d1e10a74ac36a74b0faf8b47a19c0d6085 Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Wed, 20 Nov 2024 03:40:05 +0200 Subject: [PATCH] fix: MacOS build --- exporters/elasticsearch/test/es_log_record_exporter_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exporters/elasticsearch/test/es_log_record_exporter_test.cc b/exporters/elasticsearch/test/es_log_record_exporter_test.cc index a32e3a1a2d..6bdd5248a5 100644 --- a/exporters/elasticsearch/test/es_log_record_exporter_test.cc +++ b/exporters/elasticsearch/test/es_log_record_exporter_test.cc @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 #include "opentelemetry/exporters/elasticsearch/es_log_record_exporter.h" +#include "opentelemetry/common/timestamp.h" #include "opentelemetry/exporters/elasticsearch/es_log_recordable.h" #include "opentelemetry/logs/severity.h" #include "opentelemetry/nostd/span.h" @@ -104,10 +105,9 @@ TEST(ElasticsearchLogRecordableTests, BasicTests) {"observedtimestamp", expected_observed_ts}, {"stringlist", {stringlist[0], stringlist[1]}}}; - const std::chrono::time_point now{ - std::chrono::nanoseconds(expected_observed_ts)}; + const opentelemetry::common::SystemTimestamp now{std::chrono::nanoseconds(expected_observed_ts)}; - auto scope = + const auto scope = opentelemetry::sdk::instrumentationscope::InstrumentationScope::Create(expected_scope_name); opentelemetry::exporter::logs::ElasticSearchRecordable recordable;