Function: sanitiseAttributes()
sanitiseAttributes(
attributes,allowed?):Attributes
Defined in: packages/telemetry/src/allowlist.ts:84
Parameters
attributes
Attributes | undefined
A span's, an event's or a link's attributes.
allowed?
ReadonlySet<string> = ALLOWED_SPAN_ATTRIBUTES
The keys that may stay.
Returns
Attributes
The same keys filtered to allowed, values scrubbed. A new object.