Function set_tracer_provider

pub fn set_tracer_provider<P, T, S>(new_provider: P)
where S: Span + Send + Sync + 'static, T: Tracer<Span = S> + Send + Sync + 'static, P: TracerProvider<Tracer = T> + Send + Sync + 'static,
Expand description

Sets the given TracerProvider instance as the current global provider.

Libraries should NOT call this function. It is intended for applications/executables. TracerProvider: crate::trace::TracerProvider