Package 

Class DeterministicSampler

  • 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

    • Method Summary

      Modifier and Type Method Description
      boolean sample(DDSpan span) Sample a collection of traces based on the parent span
      double getSampleRate()
      • Methods inherited from class com.datadog.trace.common.sampling.Sampler

        sample
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeterministicSampler

        DeterministicSampler(double rate)
    • 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