Enum opentelemetry::sdk::trace::SamplingDecision
source · [−]pub enum SamplingDecision {
Drop,
RecordOnly,
RecordAndSample,
}
This is supported 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
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