From 8dacf7e65d2954a4cbbfb9bea1af567400cd61ba Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Wed, 27 Mar 2024 00:55:20 -0700 Subject: [PATCH] [METRICS SDK] Remove extra OfferMeasurement call in SyncMetricsStorage::RecordDouble (#2610) --- .../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;