wai/wai-metrics, a crate with no dependencies, writes the text exposition format: counters and gauges with checked names and escaped label values, counts by labels fixed in the code, a request counter by route, method and status, and a strict reader of the format for tests. Every label is a &'static str, so no room, principal, account or address can become one. The room service, the ingest gateway (a resource of its table), wai-audit, wai-ledger, wai-fleet and wai-key-proxy answer GET /metrics with their requests, sessions and fan-out where they have them, what they hold, and the gateway's unmetered energy marker. The room service answers it before the routes of its API, outside openapi.json and the catalogue. Each service's test reads its answer strictly, moves its series with real requests, and finds none of the parties of those requests in it. wai-audit gains a library target: collector, http (App::new) and load_or_create; main.rs reads the environment and calls them, and the existing tests run through the library. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 lines
155 B
TOML
7 lines
155 B
TOML
# This file is automatically @generated by Cargo.
|
|
# It is not intended for manual editing.
|
|
version = 4
|
|
|
|
[[package]]
|
|
name = "wai-metrics"
|
|
version = "0.1.0"
|