pub fn init_tracing(
config: &TelemetryConfig,
process_id: u32,
) -> Result<TelemetryHandle>Expand description
Installs the configured tracing subscriber and retains its exporter until the returned handle is dropped.
ยงErrors
Returns an anyhow::Error when subscriber initialization fails or when the
otel-tracing feature is enabled and OTLP exporter construction fails.