pub type BoxSampler<T> = Box<dyn Sampler<T> + Send + Sync + 'static>;Expand description
Boxed version of Sampler.
Aliased Type§
pub struct BoxSampler<T>(/* private fields */);Trait Implementations§
Source§impl<T> Sampler<T> for BoxSampler<T>
impl<T> Sampler<T> for BoxSampler<T>
Source§fn is_sampled(&self, span: &CandidateSpan<'_, T>) -> bool
fn is_sampled(&self, span: &CandidateSpan<'_, T>) -> bool
This method decides whether a trace with given
span should be sampled.