Function opentelemetry::global::tracer[][src]

pub fn tracer(name: &'static str) -> BoxedTracer
Expand description

Creates a named instance of Tracer via the configured GlobalTracerProvider.

If the name is an empty string, the provider will use a default name.

This is a more convenient way of expressing global::tracer_provider().tracer(name, None).