pub trait ObjectSafeTracerProvider {
// Required method
fn boxed_tracer(
&self,
library: Arc<InstrumentationLibrary, Global>
) -> Box<dyn ObjectSafeTracer + Send + Sync, 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§
sourcefn boxed_tracer(
&self,
library: Arc<InstrumentationLibrary, Global>
) -> Box<dyn ObjectSafeTracer + Send + Sync, Global>
fn boxed_tracer( &self, library: Arc<InstrumentationLibrary, Global> ) -> Box<dyn ObjectSafeTracer + Send + Sync, Global>
Creates a versioned named tracer instance that is a trait object through the underlying
TracerProvider
.