-
public class DeterministicSamplingUtilities for deterministic sampling calculations.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DeterministicSamplingINSTANCE
-
Method Summary
Modifier and Type Method Description final FloatcombinedSampleRate(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. -
-
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).
-
-
-
-