Package 

Object DeterministicSampling

    • Method Summary

      Modifier and Type Method Description
      final Float combinedSampleRate(Float rumSessionSampleRate, Float featureSampleRate) Returns the effective sampling rate when a child feature's featureSampleRate is applied on top of a parent session's rumSessionSampleRate.
      • Methods inherited from class java.lang.Object

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

      • combinedSampleRate

         final Float combinedSampleRate(Float rumSessionSampleRate, Float featureSampleRate)

        Returns the effective sampling rate when a child feature's featureSampleRate is applied on top of a parent session's rumSessionSampleRate.

        The combined rate represents the probability that both the session AND the child feature are sampled in, preserving the deterministic guarantee: any session that passes the combined threshold is guaranteed to have also passed the session-level threshold.

        Parameters:
        rumSessionSampleRate - The RUM session sampling rate (0–100).
        featureSampleRate - The child feature sampling rate (0–100).