<PackageReference Include="OpenTelemetry" Version="1.9.0" />

OpenTelemetry.Metrics.CircularBufferBuckets

sealed class CircularBufferBuckets
A histogram buckets implementation based on circular buffer.
public int Capacity { get; }

Gets the capacity of the CircularBufferBuckets.

public long this[int index] { get; }

Returns the value of Bucket[index].

public int Offset { get; }

Gets the offset of the start index for the CircularBufferBuckets.

public int Size { get; }

Gets the size of the CircularBufferBuckets.

public CircularBufferBuckets(int capacity)

public void ScaleDown(int level = 1)

public int TryIncrement(int index, long value = 1)

Attempts to increment the value of Bucket[index] by value.