Skip to content

Connectum API Reference / @connectum/otel / shared / applyAttributeFilter

Function: applyAttributeFilter()

applyAttributeFilter(attrs, filter?): Attributes

Defined in: packages/otel/src/shared.ts:181

Applies an attribute filter to the given attributes.

Parameters

attrs

Record<string, string | number>

Base attributes to filter

filter?

OtelAttributeFilter

Optional filter function

Returns

Attributes

Filtered attributes