Enum opentelemetry::sdk::trace::SamplingDecision
source · pub enum SamplingDecision {
Drop,
RecordOnly,
RecordAndSample,
}
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 copy 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 SamplingDecision
impl Debug for SamplingDecision
source§impl PartialEq for SamplingDecision
impl PartialEq for SamplingDecision
source§fn eq(&self, other: &SamplingDecision) -> bool
fn eq(&self, other: &SamplingDecision) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SamplingDecision
Auto Trait Implementations§
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