pub fn setup_tracer(config: TracerConfig) -> Result<TracerGuard>Expand description
Sets up and registers the global tracer provider.
Without a custom provider this builds one with the configured exporters and the service resource, and registers the W3C trace context and baggage propagators. A second call logs a warning and returns a guard for the provider already registered; once a guard has been shut down, the next call registers a new provider.
ยงErrors
The OTLP exporter could not be built from the environment.