P1-02: /metrics endpoint always reports decisions_total: 0 — hardcoded, never updated #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P1 (High)
File:
decider/server.pyline 193Problem
The
/metricsendpoint always returns"decisions_total": 0because it's hardcoded and never incremented:No counter is incremented anywhere in
do_POSTor inDecider.decide(). The entire metrics endpoint is decorative.Fix
threading.Atomicor integer with lock) module-leveldo_POST