pub enum SamplingDecision {
Drop,
RecordOnly,
RecordAndSample,
}
Available on crate feature
trace
only.Expand description
Decision about whether or not to sample
Variants§
Drop
is_recording() == false
, span will not be recorded and all events and
attributes will be dropped.
RecordOnly
is_recording() == true
, but Sampled
flag MUST NOT be set.
RecordAndSample
is_recording() == true
AND Sampled
flag` MUST be set.
Trait Implementations§
Source§impl Clone for SamplingDecision
impl Clone for SamplingDecision
Source§fn clone(&self) -> SamplingDecision
fn clone(&self) -> SamplingDecision
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SamplingDecision
impl Debug for SamplingDecision
Source§impl PartialEq for SamplingDecision
impl PartialEq for SamplingDecision
impl StructuralPartialEq for SamplingDecision
Auto Trait Implementations§
impl Freeze for SamplingDecision
impl RefUnwindSafe for SamplingDecision
impl Send for SamplingDecision
impl Sync for SamplingDecision
impl Unpin for SamplingDecision
impl UnwindSafe for SamplingDecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.