Skip to content

Commit

Permalink
[METRICS SDK] Remove extra OfferMeasurement call in SyncMetricsStorag…
Browse files Browse the repository at this point in the history
…e::RecordDouble (#2610)
  • Loading branch information
ThomsonTan authored Mar 27, 2024
1 parent 611caa7 commit 8dacf7e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8dacf7e

Please sign in to comment.