PURISTA API / @purista/core / isAllowedMetricAttributeKey
Function: isAllowedMetricAttributeKey()
isAllowedMetricAttributeKey(
key):boolean
Defined in: core/metrics/attributePolicy.ts:39
Checks whether a metric attribute key follows PURISTA's low-cardinality policy.
Parameters
key
string
Returns
boolean
Example
ts
isAllowedMetricAttributeKey('purista.command.name') // true
isAllowedMetricAttributeKey('trace_id') // false