TracingSampler

Trait TracingSampler 

Source
pub trait TracingSampler {
    // Required method
    fn should_sample(&self, context: &TraceContext, spanname: &str) -> bool;
}
Expand description

Trait for implementing sampling strategies

Required Methods§

Source

fn should_sample(&self, context: &TraceContext, spanname: &str) -> bool

Determine if a trace should be sampled

Implementors§