[−][src]Trait opentelemetry::trace::TracerProvider
This is supported on crate feature
trace
only.An interface to create Tracer
instances.
Associated Types
Loading content...Required methods
pub fn get_tracer(
&self,
name: &'static str,
version: Option<&'static str>
) -> Self::Tracer
[src]
&self,
name: &'static str,
version: Option<&'static str>
) -> Self::Tracer
Creates a named tracer instance of Self::Tracer
.
If the name is an empty string then provider uses default name.
Implementors
impl TracerProvider for GlobalTracerProvider
[src]
type Tracer = BoxedTracer
This is supported on crate feature
trace
only.pub fn get_tracer(
&self,
name: &'static str,
version: Option<&'static str>
) -> Self::Tracer
[src]
&self,
name: &'static str,
version: Option<&'static str>
) -> Self::Tracer
This is supported on crate feature
trace
only.Find or create a named tracer using the global provider.
impl TracerProvider for TracerProvider
[src]
type Tracer = Tracer
This implementation of TracerProvider
produces Tracer
instances.
pub fn get_tracer(
&self,
name: &'static str,
version: Option<&'static str>
) -> Self::Tracer
[src]
&self,
name: &'static str,
version: Option<&'static str>
) -> Self::Tracer
Find or create Tracer
instance by name.
impl TracerProvider for NoopTracerProvider
[src]
type Tracer = NoopTracer
pub fn get_tracer(
&self,
_name: &'static str,
_version: Option<&'static str>
) -> Self::Tracer
[src]
&self,
_name: &'static str,
_version: Option<&'static str>
) -> Self::Tracer
Returns a new NoopTracer
instance.