pub trait TracingSampler {
// Required method
fn should_sample(&self, context: &TraceContext, spanname: &str) -> bool;
}
Expand description
Trait for implementing sampling strategies
Required Methods§
Sourcefn should_sample(&self, context: &TraceContext, spanname: &str) -> bool
fn should_sample(&self, context: &TraceContext, spanname: &str) -> bool
Determine if a trace should be sampled