Skip to content

fix(sdk): skip absent keys in FilteredAttributeProcessor#2000

Open
jorgsowa wants to merge 1 commit into
open-telemetry:mainfrom
jorgsowa:fix/filtered-attribute-processor-null-keys
Open

fix(sdk): skip absent keys in FilteredAttributeProcessor#2000
jorgsowa wants to merge 1 commit into
open-telemetry:mainfrom
jorgsowa:fix/filtered-attribute-processor-null-keys

Conversation

@jorgsowa

@jorgsowa jorgsowa commented Jul 1, 2026

Copy link
Copy Markdown

Attributes::get() returns null for missing keys, and the raw array is stored verbatim, so allow-listed keys not present on the measurement were kept as key => null instead of being dropped.

Attributes::get() returns null for missing keys, and the raw array is
stored verbatim, so allow-listed keys not present on the measurement
were kept as key => null instead of being dropped. This restores
behavior lost in a7a2861 when the AttributesBuilder (which treated
null values as unset) was replaced with a plain array.
@jorgsowa jorgsowa requested a review from a team as a code owner July 1, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant