ExponentialHistogram

data class ExponentialHistogram(val key: MetricKey, val scale: Int, val count: Long, val zeroCount: Long, val zeroThreshold: Double, val positiveOffset: Int, val positiveBucketCounts: List<Long>, val negativeOffset: Int, val negativeBucketCounts: List<Long>, val startEpochNanos: Long, val timeEpochNanos: Long) : MetricPoint

A quantile sketch rendered as an OTLP ExponentialHistogramDataPoint (cumulative temporality — the backing us.tractat.kuilt.crdt.DDSketch is grow-only).

Bucket layout is OTLP's: bucket j of a sign's array counts values whose magnitude is in (base^(offset+j), base^(offset+j+1)] with base = 2^(2^−scale). sum/min/max are not carried — a DDSketch does not track them, and they are optional in OTLP.

Constructors

Link copied to clipboard
constructor(key: MetricKey, scale: Int, count: Long, zeroCount: Long, zeroThreshold: Double, positiveOffset: Int, positiveBucketCounts: List<Long>, negativeOffset: Int, negativeBucketCounts: List<Long>, startEpochNanos: Long, timeEpochNanos: Long)

Properties

Link copied to clipboard
val count: Long
Link copied to clipboard
open override val key: MetricKey

The series this point belongs to.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scale: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun valueHash(): Long

A stable hash of the OTLP value fields, used for by-digest dedup.