track_new_with_id_sampled

Function track_new_with_id_sampled 

Source
pub fn track_new_with_id_sampled<T>(
    id: usize,
    name: &str,
    location: &str,
    value: T,
    sample_rate: f64,
) -> T
Expand description

Track variable creation with ID and sampling. Only records the event if the sample check passes.

ยงArguments

  • id - Unique variable ID
  • name - Variable name
  • location - Source location string
  • value - The value being tracked
  • sample_rate - Probability of tracking (0.0 to 1.0)