Skip to main content

setup_tracing_with_config

Function setup_tracing_with_config 

Source
pub fn setup_tracing_with_config(
    config: TracingConfig,
) -> Result<Option<OtelGuard>>
Expand description

Initializes tracing from explicit stdout and OpenTelemetry filter configuration.

Returns an OtelGuard if open-telemetry is enabled, otherwise None. When this guard is dropped, the tracer provider is shutdown.