🪣 Buckets are a set of bucket counts for exponential histograms.

Represents the bucket structure for exponential histograms, with an offset and counts for each bucket.

const positiveBuckets: Buckets = {
offset: 0,
bucketCounts: [10, 20, 30, 25, 15, 5]
};
interface Buckets {
    bucketCounts: number[];
    offset: number;
}

Properties

Properties

bucketCounts: number[]

Count of observations in each bucket

offset: number

Offset for the first bucket