Skip to main content

boundMetricAttributes

@forge/monorepo


@forge/monorepo / backend/src / boundMetricAttributes

Function: boundMetricAttributes()

boundMetricAttributes(attributes): Attributes

Defined in: backend/src/telemetry/metrics.ts:152

Drop unbounded attributes before recording.

Applied by the adapter, not trusted to call sites. runId on a latency histogram is one line of code and one series per run — it looks like helpful detail in review and is a cardinality incident in production.

Parameters

attributes

Readonly<Record<string, AttributeValue>> | undefined

Returns

Attributes