-
public class DeterministicSampler.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final FloatSAMPLE_ALL_RATEprivate final ULongSAMPLER_HASHERprivate final ULongMAX_IDpublic final static DeterministicSampler.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final FloatgetSAMPLE_ALL_RATE()Represents the maximum allowable sample rate in the sampling process. final ULonggetSAMPLER_HASHER()A constant value used as a multiplier for generating deterministic hash values within the DeterministicSampler implementation. final ULonggetMAX_ID()The maximum value used as an upper limit for computing hash-based sampling thresholds. -
-
Method Detail
-
getSAMPLE_ALL_RATE
final Float getSAMPLE_ALL_RATE()
Represents the maximum allowable sample rate in the sampling process.
-
getSAMPLER_HASHER
final ULong getSAMPLER_HASHER()
A constant value used as a multiplier for generating deterministic hash values within the DeterministicSampler implementation. This value is a good number for Knuth hashing (large, prime, fit in 64 bit long).
-
-
-
-