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 ExemplarFilter
A filter which makes no measurements eligible for being an exemplar.static ExemplarFilter
alwaysOn()
A filter which makes all measurements eligible for being an exemplar.boolean
shouldSampleMeasurement
(double value, Attributes attributes, Context context) Returns whether or not a reservoir should attempt to filter a measurement.boolean
shouldSampleMeasurement
(long value, Attributes attributes, Context context) Returns whether or not a reservoir should attempt to filter a measurement.static ExemplarFilter
A filter that only accepts measurements where there is aSpan
inContext
that 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 aSpan
inContext
that 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.
-