pub struct AlwaysOffSampler;Expand description
Always-off sampler (samples no traces)
Trait Implementations§
Source§impl Clone for AlwaysOffSampler
impl Clone for AlwaysOffSampler
Source§impl Debug for AlwaysOffSampler
impl Debug for AlwaysOffSampler
Source§impl Sampler for AlwaysOffSampler
impl Sampler for AlwaysOffSampler
Source§fn should_sample(&self, _context: &SamplingContext) -> SamplingResult
fn should_sample(&self, _context: &SamplingContext) -> SamplingResult
Decide whether to sample a trace
Source§fn get_sampling_rate(&self) -> f64
fn get_sampling_rate(&self) -> f64
Get current sampling rate
Source§fn update(&mut self, _context: &SamplingContext, _sampled: bool)
fn update(&mut self, _context: &SamplingContext, _sampled: bool)
Update sampler state (for adaptive samplers)
Auto Trait Implementations§
impl Freeze for AlwaysOffSampler
impl RefUnwindSafe for AlwaysOffSampler
impl Send for AlwaysOffSampler
impl Sync for AlwaysOffSampler
impl Unpin for AlwaysOffSampler
impl UnsafeUnpin for AlwaysOffSampler
impl UnwindSafe for AlwaysOffSampler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more