From 327c5d8a03064c1d2f747675fd00cf6213fd2379 Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Tue, 19 Dec 2023 17:34:46 -0500 Subject: [PATCH] AggregatorStore: don't double-count drops in doubles As funny as double counting only in doubles is, this seems like an oversight where we inadvertently call `Interlocked.Increment(ref this.DroppedMeasurements);` twice in the non-`emitOverflowAttribute` path. I noticed this digging into a related issue, so thought I'd pop up a PR while in here :) --- src/OpenTelemetry/Metrics/AggregatorStore.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/OpenTelemetry/Metrics/AggregatorStore.cs b/src/OpenTelemetry/Metrics/AggregatorStore.cs index 631c4fb01da..1ca4baa1114 100644 --- a/src/OpenTelemetry/Metrics/AggregatorStore.cs +++ b/src/OpenTelemetry/Metrics/AggregatorStore.cs @@ -1033,7 +1033,6 @@ private void UpdateDouble(double value, ReadOnlySpan