Skip to main content

Module obs

Module obs 

Source
Expand description

Shared observability setup (Prometheus + tracing) used by run and schedule. install_observability is idempotent, so calling this once per process is safe even though main.rs already installed a basic subscriber.

Functions§

build_observability_config
Build the core ObservabilityConfig from the CLI config, including OTLP when the otel feature is compiled in. Logs a one-shot warning if an otel: block is present but the binary was built without --features otel.
install
Install Prometheus + tracing from the config’s observability: block. Logs (does not fail) when a recorder/subscriber is already installed.
resolve_tracing_level
Resolve the effective tracing level using the documented precedence: FAUCET_LOG > RUST_LOG > YAML observability.tracing.level > None. (cli_flag is reserved for a future call-site that forwards --log-level.)