@AutoService(value=Sampler.class) public class RateSampler extends AbstractSampler
Keep (100 * `sample_rate`)% of the traces. It samples randomly, its main purpose is to reduce the integration footprint.
| Constructor and Description |
|---|
RateSampler(double sampleRate)
Build an instance of the sampler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
doSample(DDBaseSpan<?> span) |
double |
getSampleRate() |
addSkipTagPattern, samplepublic RateSampler(double sampleRate)
sampleRate - a number [0,1] representing the rate ratio.public boolean doSample(DDBaseSpan<?> span)
public double getSampleRate()