pub type BoxSampler<T> = Box<dyn Sampler<T> + Send + Sync + 'static>;
Expand description

Boxed version of Sampler.

Trait Implementations

This method decides whether a trace with given span should be sampled.

Converts into BoxSampler.

Returns the sampler that samples a trace if self or other decides to sample it.

Returns the sampler that samples a trace if both of self and other decides to sample it.