Interface ExemplarFilter
public interface ExemplarFilter
Exemplar filters are used to pre-filter measurements before attempting to store them in a
reservoir.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExemplarFilterA filter that accepts any measurement.static ExemplarFilterA filter that accepts no measurements.static ExemplarFilterA filter that only accepts measurements where there is aSpaninContextthat is being sampled.booleanshouldSampleMeasurement(double value, io.opentelemetry.api.common.Attributes attributes, io.opentelemetry.context.Context context) Returns whether or not a reservoir should attempt to filter a measurement.booleanshouldSampleMeasurement(long value, io.opentelemetry.api.common.Attributes attributes, io.opentelemetry.context.Context context) Returns whether or not a reservoir should attempt to filter a measurement.
-
Method Details
-
shouldSampleMeasurement
boolean shouldSampleMeasurement(long value, io.opentelemetry.api.common.Attributes attributes, io.opentelemetry.context.Context context) Returns whether or not a reservoir should attempt to filter a measurement. -
shouldSampleMeasurement
boolean shouldSampleMeasurement(double value, io.opentelemetry.api.common.Attributes attributes, io.opentelemetry.context.Context context) Returns whether or not a reservoir should attempt to filter a measurement. -
sampleWithTraces
A filter that only accepts measurements where there is aSpaninContextthat is being sampled. -
alwaysSample
A filter that accepts any measurement. -
neverSample
A filter that accepts no measurements.
-