Class LongToDoubleExemplarReservoir<T extends ExemplarData>
java.lang.Object
io.opentelemetry.sdk.metrics.internal.exemplar.LongToDoubleExemplarReservoir<T>
- All Implemented Interfaces:
ExemplarReservoir<T>
class LongToDoubleExemplarReservoir<T extends ExemplarData>
extends Object
implements ExemplarReservoir<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectAndReset(Attributes pointAttributes) Returns an immutable list of Exemplars for exporting from the current reservoir.voidofferDoubleMeasurement(double value, Attributes attributes, Context context) Offers adoublemeasurement to be sampled.voidofferLongMeasurement(long value, Attributes attributes, Context context) Offers alongmeasurement to be sampled.
-
Field Details
-
delegate
-
-
Constructor Details
-
LongToDoubleExemplarReservoir
LongToDoubleExemplarReservoir(ExemplarReservoir<T> delegate)
-
-
Method Details
-
offerDoubleMeasurement
Description copied from interface:ExemplarReservoirOffers adoublemeasurement to be sampled.- Specified by:
offerDoubleMeasurementin interfaceExemplarReservoir<T extends ExemplarData>
-
offerLongMeasurement
Description copied from interface:ExemplarReservoirOffers alongmeasurement to be sampled.- Specified by:
offerLongMeasurementin interfaceExemplarReservoir<T extends ExemplarData>
-
collectAndReset
Description copied from interface:ExemplarReservoirReturns an immutable list of Exemplars for exporting from the current reservoir.Additionally, clears the reservoir for the next sampling period.
- Specified by:
collectAndResetin interfaceExemplarReservoir<T extends ExemplarData>- Parameters:
pointAttributes- theAttributesassociated with the metric point.ExemplarDatas should filter these out of their final data state.- Returns:
- An (immutable) list of sampled exemplars for this point. Implementers are expected to
filter out
pointAttributesfrom the original recorded attributes.
-