pub fn init_observability(
cfg: &ObservabilityConfig,
) -> RuntimeResult<ObservabilityGuard>Expand description
Initialize logging + (optional) tracing subscriber.
RUST_LOGwins over configured level; fallback toinfoif unset.- Tracing exporter only activates when both the
opentelemetryfeature is enabled andcfg.tracing_enabledis true. - Invalid endpoints fail fast; runtime delivery errors log but do not abort.