-
- All Implemented Interfaces:
-
com.datadog.trace.common.sampling.RateSampler,com.datadog.trace.common.sampling.Sampler
public class DeterministicSampler implements RateSampler
This implements the deterministic sampling algorithm used by the Datadog Agent as well as the tracers for other languages
-
-
Constructor Summary
Constructors Constructor Description DeterministicSampler(double rate)
-
Method Summary
Modifier and Type Method Description booleansample(DDSpan span)Sample a collection of traces based on the parent span doublegetSampleRate()-
-
Method Detail
-
sample
boolean sample(DDSpan span)
Sample a collection of traces based on the parent span
- Parameters:
span- the parent span with its context
-
getSampleRate
double getSampleRate()
-
-
-
-