Interface ExemplarFilter
- All Known Implementing Classes:
AlwaysOffFilter,AlwaysOnFilter,TraceBasedExemplarFilter
public interface ExemplarFilter
Exemplar filters are used to pre-filter measurements before attempting to store them in a
reservoir.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExemplarFilterA filter which makes no measurements eligible for being an exemplar.static ExemplarFilteralwaysOn()A filter which makes all measurements eligible for being an exemplar.booleanshouldSampleMeasurement(double value, Attributes attributes, Context context) Returns whether or not a reservoir should attempt to filter a measurement.booleanshouldSampleMeasurement(long value, Attributes attributes, Context context) Returns whether or not a reservoir should attempt to filter a measurement.static ExemplarFilterA filter that only accepts measurements where there is aSpaninContextthat is being sampled.
-
Method Details
-
shouldSampleMeasurement
Returns whether or not a reservoir should attempt to filter a measurement. -
shouldSampleMeasurement
Returns whether or not a reservoir should attempt to filter a measurement. -
traceBased
A filter that only accepts measurements where there is aSpaninContextthat is being sampled. -
alwaysOn
A filter which makes all measurements eligible for being an exemplar. -
alwaysOff
A filter which makes no measurements eligible for being an exemplar.
-