Interface SamplingStrategy
-
- All Known Implementing Classes:
MaxSamplesPerPeriod
,ProbabilisticSampleRate
public interface SamplingStrategy
A sampling strategy makes the high-level decision of whether or not a query should be traced. Callers should be able to expect that calling shouldSample() is a cheap operation with little or no underlying locking. This in turn means that the sampling strategy may be consulted for each query with minimal overhead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldSample()
-