pub unsafe extern "C" fn options_set_sample_rate(
    opts: *mut Options,
    sample_rate: f64
)
Expand description

Sets the sample rate, which should be a double between 0.0 and 1.0. Sentry will randomly discard any event that is captured using sentry_capture_event when a sample rate < 1 is set.