metrics: build from one Params in place of seven Add calls (closes #438) #456

Open
clawbot wants to merge 1 commits from issue-438-metrics-params into next
pull from: issue-438-metrics-params
1 Commits
Author SHA1 Message Date
clawbot b1b90073c1 metrics: build from one Params in place of seven Add calls (closes #438)
check / check (push) Waiting to run
metrics.New takes a Params holding every part at once, each behind a
small interface declared in metrics beside the metrics it reads. A part
that is off is left nil and adds no metric. The rule-match and
reputation-hit counters are made in New, so no metric field is nil and
no call order is needed. metrics no longer imports remotelog or rules.

Model: opus-5-5
2026-11-19 17:24:04 +00:00