pub trait ObjectSafeTracerProvider {
    // Required method
    fn versioned_tracer_boxed(
        &self,
        name: Cow<'static, str>,
        version: Option<&'static str>,
        schema_url: Option<&'static str>
    ) -> Box<dyn ObjectSafeTracer + Sync + Send + 'static, Global>;
}
Expand description

Allows a specific TracerProvider to be used generically by the GlobalTracerProvider by mirroring the interface and boxing the return types.

Required Methods§

source

fn versioned_tracer_boxed( &self, name: Cow<'static, str>, version: Option<&'static str>, schema_url: Option<&'static str> ) -> Box<dyn ObjectSafeTracer + Sync + Send + 'static, Global>

Creates a versioned named tracer instance that is a trait object through the underlying TracerProvider.

Implementors§

source§

impl<S, T, P> ObjectSafeTracerProvider for Pwhere S: Span + Send + Sync + 'static, T: Tracer<Span = S> + Send + Sync + 'static, P: TracerProvider<Tracer = T>,