METRIC_ATTRIBUTE_ALLOWLIST
@forge/monorepo / backend/src / METRIC_ATTRIBUTE_ALLOWLIST
Variable: METRIC_ATTRIBUTE_ALLOWLIST
constMETRIC_ATTRIBUTE_ALLOWLIST: readonlystring[]
Defined in: backend/src/telemetry/metrics.ts:134
The attribute set a metric may carry.
Bounded on purpose, and this is the important part: every metric attribute multiplies the series count, and an unbounded one — a run id, a conversation id, a user id — is how a metrics bill becomes the largest line in an infrastructure budget. Ids belong on spans and logs, which are sampled and indexed, never on metrics.