log_layer

Function log_layer 

Source
pub fn log_layer(
    otlp_config: OtlpLogsConfig,
) -> Result<OpenTelemetryTracingBridge<SdkLoggerProvider, SdkLogger>>
Expand description

Creates a tracing layer that exports logs to an OTLP endpoint.

This layer bridges logs emitted via the tracing crate to OpenTelemetry logs.