pub struct AllSampler;Expand description
This samples all traces.
Trait Implementations§
Source§impl Clone for AllSampler
impl Clone for AllSampler
Source§fn clone(&self) -> AllSampler
fn clone(&self) -> AllSampler
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 AllSampler
impl Debug for AllSampler
Source§impl<T> Sampler<T> for AllSampler
impl<T> Sampler<T> for AllSampler
Source§fn is_sampled(&self, _span: &CandidateSpan<'_, T>) -> bool
fn is_sampled(&self, _span: &CandidateSpan<'_, T>) -> bool
This method decides whether a trace with given
span should be sampled.Source§fn or<U>(self, other: U) -> OrSampler<Self, U>
fn or<U>(self, other: U) -> OrSampler<Self, U>
Returns the sampler that samples a trace if
self or other decides to sample it.Source§fn and<U>(self, other: U) -> AndSampler<Self, U>
fn and<U>(self, other: U) -> AndSampler<Self, U>
Returns the sampler that samples a trace if both of
self and other decides to sample it.Auto Trait Implementations§
impl Freeze for AllSampler
impl RefUnwindSafe for AllSampler
impl Send for AllSampler
impl Sync for AllSampler
impl Unpin for AllSampler
impl UnwindSafe for AllSampler
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