From b9f538b68529ae9ad25240f29cf00c89370cb83d Mon Sep 17 00:00:00 2001 From: Lalit Kumar Bhasin Date: Thu, 28 Sep 2023 23:06:54 -0700 Subject: [PATCH] compile error --- sdk/src/metrics/sync_instruments.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/metrics/sync_instruments.cc b/sdk/src/metrics/sync_instruments.cc index 4a9e2718a0..a3096e053b 100644 --- a/sdk/src/metrics/sync_instruments.cc +++ b/sdk/src/metrics/sync_instruments.cc @@ -57,7 +57,7 @@ void LongCounter::Add(uint64_t value) noexcept << instrument_descriptor_.name_); return; } - return storage_->RecordDouble(value, context); + return storage_->RecordLong(value, context); } void LongCounter::Add(uint64_t value, const opentelemetry::context::Context &context) noexcept