pub fn setup_tracing(otel: OpenTelemetry) -> Result<Option<OtelGuard>>Expand description
Initializes tracing to stdout and optionally an open-telemetry exporter.
Trace filtering defaults to INFO and can be configured using the conventional RUST_LOG
environment variable.
The open-telemetry configuration is controlled via environment variables as defined in the specification
Registers a panic hook so that panic errors are reported to the open-telemetry exporter.
Returns an OtelGuard if open-telemetry is enabled, otherwise None. When this guard is
dropped, the tracer provider is shutdown.