Enum opentelemetry::sdk::trace::Sampler [−][src]
This is supported on crate feature
trace
only.Expand description
Sampling options
Variants
Always sample the trace
Never sample the trace
Respects the parent span’s sampling decision or delegates a delegate sampler for root spans.
Sample a given fraction of traces. Fractions >= 1 will always sample. If the parent span is sampled, then it’s child spans will automatically be sampled. Fractions < 0 are treated as zero, but spans may still be sampled if their parent is.
Tuple Fields of TraceIdRatioBased
0: f64
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sampler
impl UnwindSafe for Sampler
Blanket Implementations
Mutably borrows from an owned value. Read more