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

OpenTelemetry.Metrics.Base2ExponentialBucketHistogram

Represents an exponential bucket histogram with base = 2 ^ (2 ^ (-scale)). An exponential bucket histogram has infinite number of buckets, which are identified by Bucket[index] = ( base ^ index, base ^ (index + 1) ], where index is an integer.
public Base2ExponentialBucketHistogram(int maxBuckets = 160, int scale = 20)

Initializes a new instance of the Base2ExponentialBucketHistogram class.

public int MapToIndex(double value)

Maps a finite positive IEEE 754 double-precision floating-point number to Bucket[index] = ( base ^ index, base ^ (index + 1) ], where index is an integer.

public void Record(double value)