Class ReservoirCell

java.lang.Object
io.opentelemetry.sdk.metrics.internal.exemplar.ReservoirCell

class ReservoirCell extends Object
A Reservoir cell pre-allocated memories for Exemplar data.

We only allocate new objects during collection. This class should NOT cause allocations during sampling or within the synchronous metric hot-path.

Allocations are acceptable in the getAndResetDouble(Attributes) and getAndResetLong(Attributes) collection methods.