Skip to main content

Module run

Module run 

Source
Expand description

Server bootstrap shared by the firstpass and firstpass-proxy binaries: build state from config, open the trace store, and serve until Ctrl-C. Keeping this in the lib means both the unified CLI (firstpass up) and the bare proxy binary start the server the exact same way.

Functions§

build_gate_health
Register a default error budget for every gate named across enforce routes: auto-disable a gate whose abstain rate exceeds 25% over its last 50 runs (SPEC §7.2).
init_tracing
Initialize the global tracing subscriber from RUST_LOG (default info). Called by the binaries, not the library internals.
serve
Open the trace store, build AppState, and serve the HTTP proxy until Ctrl-C.