pub struct PassiveSampler;Expand description
This samples traces which have one or more references.
Trait Implementations§
Source§impl Clone for PassiveSampler
impl Clone for PassiveSampler
Source§fn clone(&self) -> PassiveSampler
fn clone(&self) -> PassiveSampler
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 PassiveSampler
impl Debug for PassiveSampler
Source§impl<T> Sampler<T> for PassiveSampler
impl<T> Sampler<T> for PassiveSampler
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 PassiveSampler
impl RefUnwindSafe for PassiveSampler
impl Send for PassiveSampler
impl Sync for PassiveSampler
impl Unpin for PassiveSampler
impl UnwindSafe for PassiveSampler
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