From 0627b5481beb664685ed3de4859054e092e6d4ac Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Tue, 26 Mar 2024 14:40:07 -0700 Subject: [PATCH] [METRICS SDK] Remove extra OfferMeasurement call in SyncMetricsStorage::RecordDouble --- .../opentelemetry/sdk/metrics/state/sync_metric_storage.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sdk/include/opentelemetry/sdk/metrics/state/sync_metric_storage.h b/sdk/include/opentelemetry/sdk/metrics/state/sync_metric_storage.h index 6168415ff1..9c851379e1 100644 --- a/sdk/include/opentelemetry/sdk/metrics/state/sync_metric_storage.h +++ b/sdk/include/opentelemetry/sdk/metrics/state/sync_metric_storage.h @@ -125,10 +125,6 @@ class SyncMetricStorage : public MetricStorage, public SyncWritableMetricStorage const opentelemetry::context::Context &context OPENTELEMETRY_MAYBE_UNUSED) noexcept override { -#ifdef ENABLE_METRICS_EXEMPLAR_PREVIEW - exemplar_reservoir_->OfferMeasurement(value, attributes, context, - std::chrono::system_clock::now()); -#endif if (instrument_descriptor_.value_type_ != InstrumentValueType::kDouble) { return;