pub enum Sampling {
Full,
Random(f64),
}
Expand description
The actual distribution (random, fixed-cycled, etc.) depends on selected sampling method.
Variants§
Full
Record every collected value. Effectively disable sampling.
Random(f64)
Floating point sampling rate
- 1.0+ records everything
- 0.5 records one of two values
- 0.0 records nothing
Trait Implementations§
impl Copy for Sampling
Auto Trait Implementations§
impl Freeze for Sampling
impl RefUnwindSafe for Sampling
impl Send for Sampling
impl Sync for Sampling
impl Unpin for Sampling
impl UnwindSafe for Sampling
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more