Class RandomFixedSizeExemplarReservoir<T extends ExemplarData>

java.lang.Object
io.opentelemetry.sdk.metrics.internal.exemplar.FixedSizeExemplarReservoir<T>
io.opentelemetry.sdk.metrics.internal.exemplar.RandomFixedSizeExemplarReservoir<T>
All Implemented Interfaces:
ExemplarReservoir<T>

class RandomFixedSizeExemplarReservoir<T extends ExemplarData> extends FixedSizeExemplarReservoir<T>
A FixedSizeExemplarReservoir which uses an un-unweighted/naive algorithm for sampler where the probability of sampling decrease as the number of observations continue.

When measurements are collected via FixedSizeExemplarReservoir.collectAndReset(Attributes), the observation count is reset, making the probability of samplings effectively 1.0.