check / check (push) Waiting to run
The metrics middleware gave the handler label each request's path, so every new path added series that were never removed, and /metrics listed encrypted URL tokens. The label is now the pattern of the chi route the request matches, or "unmatched" for one that matches none. The metrics library takes the label before calling the handler, so the middleware asks the router with chi's Find which route matches. The existing TestMetricsRecordsServedRequest now fails: it serves a request outside any router and expects handler="/test", the path. Changing it needs the owner's approval. Model: opus-5-5