Function: sanitizeTelemetryAttributes()
sanitizeTelemetryAttributes(
attributes?):Record<string,TelemetryAttributeValue>
Defined in: javascript/src/telemetry/index.ts:37
Keep telemetry attributes bounded and low-cardinality.
Unknown keys and non-scalar values are discarded. String values are normalized to stable tokens so identifiers, metadata, and raw payloads cannot accidentally pass through this boundary.
Parameters
attributes?
Readonly<Record<string, unknown>> = {}
Returns
Record<string, TelemetryAttributeValue>