Function opentelemetry::global::set_tracer_provider
source · pub fn set_tracer_provider<P, T, S>(new_provider: P) -> GlobalTracerProvider
Available on crate feature
trace
only.Expand description
Sets the given TracerProvider
instance as the current global provider.
It returns the TracerProvider
instance that was previously mounted as global provider
(e.g. NoopTracerProvider
if a provider had not been set before).