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.
TraceIdRatioBased(f64)
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sampler
impl UnwindSafe for Sampler
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V