Interface Sampler

  • All Known Implementing Classes:
    SamplerImpl

    public interface Sampler
    Algorithms that let us choose a subset of SDK traffic to process.
    • Method Detail

      • sampleRandom

        boolean sampleRandom​(float threshold)
        Simple random sampling that selects below the given threshold.
        Parameters:
        threshold - the sampling percentage in the range [0, 1].
        Returns:
        true if we should sample in, false if we should sample out.