Skip to content

Commit 4ae0aaf

Browse files
authored
[sdk-metrics] Clean up locking in MetricPoint (#5368)
1 parent fb9576b commit 4ae0aaf

File tree

4 files changed

+111
-98
lines changed

4 files changed

+111
-98
lines changed

src/OpenTelemetry/Metrics/Base2ExponentialBucketHistogram.cs

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ internal sealed partial class Base2ExponentialBucketHistogram
2323
internal double RunningMax = double.NegativeInfinity;
2424
internal double SnapshotMax;
2525

26-
internal int IsCriticalSectionOccupied = 0;
27-
2826
internal ExponentialHistogramData SnapshotExponentialHistogramData = new();
2927

3028
private int scale;

src/OpenTelemetry/Metrics/HistogramBuckets.cs

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ public class HistogramBuckets
2727
internal double RunningMax = double.NegativeInfinity;
2828
internal double SnapshotMax;
2929

30-
internal int IsCriticalSectionOccupied = 0;
31-
3230
private readonly BucketLookupNode? bucketLookupTreeRoot;
3331

3432
private readonly Func<double, int> findHistogramBucketIndex;

0 commit comments

Comments
 (0)