Enum opentelemetry::sdk::trace::SamplingDecision [−][src]
pub enum SamplingDecision { Drop, RecordOnly, RecordAndSample, }
This is supported on crate feature
trace
only.Expand description
Decision about whether or not to sample
Variants
is_recording() == false
, span will not be recorded and all events and
attributes will be dropped.
is_recording() == true
, but Sampled
flag MUST NOT be set.
is_recording() == true
AND Sampled
flag` MUST be set.
Trait Implementations
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
Mutably borrows from an owned value. Read more