Skip to main content

decide

Function decide 

Source
pub fn decide(
    cfg: &SamplingConfig,
    full_name: &str,
    severity: Severity,
    inbound_sampled: Option<bool>,
) -> SamplingDecision
Expand description

Run the head sampler. inbound_sampled is the traceparent.sampled bit lifted off the active scope frame; pass None when no scope is active or the caller did not propagate W3C trace context.