Class SampleFilter
- java.lang.Object
-
- fish.payara.nucleus.requesttracing.sampling.SampleFilter
-
- Direct Known Subclasses:
AdaptiveSampleFilter
public class SampleFilter extends Object
Determines whether to sample or not, given a specified sample rate.
-
-
Field Summary
Fields Modifier and Type Field Description protected double
sampleRate
The rate at which to sample requests.
-
Constructor Summary
Constructors Constructor Description SampleFilter()
Initialises the sample filter with a sample rate of 1.SampleFilter(double sampleRate)
Initialises the sample filter.
-
-
-
Constructor Detail
-
SampleFilter
public SampleFilter(double sampleRate)
Initialises the sample filter.- Parameters:
sampleRate
- the rate, between 0 and 1, at which to sample requests.
-
SampleFilter
public SampleFilter()
Initialises the sample filter with a sample rate of 1. This means that every request will be sampled.
-
-