common_telemetry::tracing_sampler

Function create_sampler

source
pub fn create_sampler(opt: &TracingSampleOptions) -> Box<dyn ShouldSample>