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§

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.)