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(defaultinfo). Called by the binaries, not the library internals. - serve
- Open the trace store, build
AppState, and serve the HTTP proxy until Ctrl-C.