Skip to content

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

Merged
bobstrecansky merged 1 commit into
open-telemetry:mainfrom
jorgsowa:fix/filtered-attribute-processor-null-keys
Jul 6, 2026
Merged

fix(sdk): skip absent keys in FilteredAttributeProcessor#2000
bobstrecansky merged 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
Contributor

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
@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.99%. Comparing base (6cb4156) to head (b2e11c7).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #2000      +/-   ##
============================================
- Coverage     68.02%   67.99%   -0.04%     
- Complexity     3075     3077       +2     
============================================
  Files           459      459              
  Lines          9017     9021       +4     
============================================
  Hits           6134     6134              
- Misses         2883     2887       +4     
Flag Coverage Δ
8.1 67.70% <100.00%> (-0.02%) ⬇️
8.2 67.91% <100.00%> (+0.01%) ⬆️
8.3 67.96% <100.00%> (+0.04%) ⬆️
8.4 67.91% <100.00%> (-0.08%) ⬇️
8.5 67.94% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
.../AttributeProcessor/FilteredAttributeProcessor.php 100.00% <100.00%> (ø)

... and 9 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6cb4156...b2e11c7. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bobstrecansky
bobstrecansky merged commit 697aefd into open-telemetry:main Jul 6, 2026
11 of 12 checks passed
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.

2 participants