pub struct SamplingParams {
pub vu_threshold: usize,
pub reservoir_size: usize,
}Expand description
Configuration for the two-stage sampling mechanism (VU threshold + reservoir).
Fields§
§vu_threshold: usizeVU count below which all results are collected.
Set to 0 to disable VU-threshold sampling entirely (always rate 1.0).
Default: 50.
reservoir_size: usizeMaximum results to retain in the buffer. Default: 100_000.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SamplingParams
impl RefUnwindSafe for SamplingParams
impl Send for SamplingParams
impl Sync for SamplingParams
impl Unpin for SamplingParams
impl UnsafeUnpin for SamplingParams
impl UnwindSafe for SamplingParams
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