Skip to content

r.metric(...)

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.obs.metrics.inc("created_total", { status: "new" }).


From packages/feature-ast/src/patterns.ts -> MetricPattern