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
ObservabilityConfigfrom the CLI config, including OTLP when theotelfeature is compiled in. Logs a one-shot warning if anotel: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> YAMLobservability.tracing.level>None. (cli_flagis reserved for a future call-site that forwards--log-level.)