pub fn init_observability(
cfg: &ObservabilityConfig,
) -> ActorResult<ObservabilityGuard>Expand description
Initialize logging + (optional) tracing subscriber with default fmt layer.
This is the original API for backward compatibility. It uses a stderr-based fmt layer for local logging output.
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.