pub enum SamplingStrategy {
Fixed {
rate: u32,
},
Dynamic {
min_rate: u32,
max_rate: u32,
target_throughput: u64,
},
TimeBased {
min_interval: u64,
},
}
Expand description
Adaptive sampling strategy
Variants§
Fixed
Fixed rate sampling (1 in N)
§Fields
rate
: The fixed sampling rate, where 1 inrate
samples are taken.
Dynamic
Dynamic rate based on load
§Fields
min_rate
: The minimum sampling rate.max_rate
: The maximum sampling rate.target_throughput
: The target throughput to maintain.
Fields
TimeBased
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
impl Copy 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