OpenTelemetry.Metrics.CircularBufferBuckets
A histogram buckets implementation based on circular buffer.
namespace OpenTelemetry.Metrics
{
internal sealed class CircularBufferBuckets
{
public int Capacity { get; }
public int Offset { get; }
public int Size { get; }
public long this[int index] { get; }
public CircularBufferBuckets(int capacity);
public int TryIncrement(int index, long value = 1);
public void ScaleDown(int level = 1);
}
}