Class AlwaysOffFilter
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.exemplar.AlwaysOffFilter
-
- All Implemented Interfaces:
ExemplarFilter
public final class AlwaysOffFilter extends java.lang.Object implements ExemplarFilter
A filter which makes no measurements eligible for being an exemplar.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static ExemplarFilterINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateAlwaysOffFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
INSTANCE
static final ExemplarFilter INSTANCE
-
-
Method Detail
-
shouldSampleMeasurement
public boolean shouldSampleMeasurement(long value, Attributes attributes, Context context)Description copied from interface:ExemplarFilterReturns whether or not a reservoir should attempt to filter a measurement.- Specified by:
shouldSampleMeasurementin interfaceExemplarFilter
-
shouldSampleMeasurement
public boolean shouldSampleMeasurement(double value, Attributes attributes, Context context)Description copied from interface:ExemplarFilterReturns whether or not a reservoir should attempt to filter a measurement.- Specified by:
shouldSampleMeasurementin interfaceExemplarFilter
-
-