pub fn track_new_with_id_sampled<T>(
id: usize,
name: &str,
location: &str,
value: T,
sample_rate: f64,
) -> TExpand description
Track variable creation with ID and sampling. Only records the event if the sample check passes.
ยงArguments
id- Unique variable IDname- Variable namelocation- Source location stringvalue- The value being trackedsample_rate- Probability of tracking (0.0 to 1.0)