Skip to main content
Version: 2.x

Function: sanitizeTelemetryAttributes()

sanitizeTelemetryAttributes<T>(attributes?): SanitizedTelemetryAttributes

Defined in: javascript/src/telemetry/index.ts:48

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.

Type Parameters​

T​

T extends object

Parameters​

attributes?​

T

Returns​

SanitizedTelemetryAttributes