pub enum SamplingStrategy {
AlwaysOn,
AlwaysOff,
HeadBased,
RateBased {
traces_per_sec: u32,
},
}Expand description
Sampling strategy enumeration.
Variants§
AlwaysOn
Sample all traces (default for development).
AlwaysOff
Sample no traces (useful for benchmarks).
HeadBased
Probabilistic head-based sampling. The rate field in
SamplingConfig controls the probability (0.0 to 1.0).
RateBased
Rate-limited sampling: at most N traces per second.
Trait Implementations§
Source§impl Clone for SamplingStrategy
impl Clone for SamplingStrategy
Source§fn clone(&self) -> SamplingStrategy
fn clone(&self) -> SamplingStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SamplingStrategy
impl Debug for SamplingStrategy
Source§impl PartialEq for SamplingStrategy
impl PartialEq for SamplingStrategy
impl StructuralPartialEq for SamplingStrategy
Auto Trait Implementations§
impl Freeze for SamplingStrategy
impl RefUnwindSafe for SamplingStrategy
impl Send for SamplingStrategy
impl Sync for SamplingStrategy
impl Unpin for SamplingStrategy
impl UnwindSafe for SamplingStrategy
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