r.metric(...)
Overview
Section titled “Overview”r.metric(shortName, options) — declares a metric under its short name
(without the kumiko_<feature>_ prefix; the framework qualifies it at
boot and validates snake_case + type suffix). Runtime usage:
ctx.metrics.inc("created_total", { status: "new" }).
From packages/framework/src/engine/feature-ast/patterns.ts -> MetricPattern