Skip to content

Remove AttributesExtractorUtil#16152

Merged
laurit merged 6 commits intomainfrom
copilot/remove-attributes-extractor-util
Feb 17, 2026
Merged

Remove AttributesExtractorUtil#16152
laurit merged 6 commits intomainfrom
copilot/remove-attributes-extractor-util

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 12, 2026

See open-telemetry/opentelemetry-java#8072

AttributesBuilder.put(key, null) is already a no-op, making the null-check wrapper in AttributesExtractorUtil.internalSet() redundant.

Copilot AI changed the title [WIP] Remove AttributesExtractorUtil as redundant wrapper Remove AttributesExtractorUtil Feb 12, 2026
Copilot AI requested a review from trask February 12, 2026 03:25
@github-actions github-actions Bot added the test native This label can be applied to PRs to trigger them to run native tests label Feb 12, 2026
@trask trask marked this pull request as ready for review February 12, 2026 06:29
@trask trask requested a review from a team as a code owner February 12, 2026 06:29
@laurit
Copy link
Copy Markdown
Contributor

laurit commented Feb 12, 2026

UnsafeAttributes used by instrumentation api seems to store nulls

public <T> AttributesBuilder put(AttributeKey<T> key, @Nullable T value) {
super.put(key, value);
return this;
}

@trask
Copy link
Copy Markdown
Member

trask commented Feb 12, 2026

yeah, sorry, I should have called that out in this PR, I changed it (because was throwing NPE): 0582589

@laurit laurit enabled auto-merge (squash) February 17, 2026 15:02
@laurit laurit merged commit def88cf into main Feb 17, 2026
166 of 168 checks passed
@laurit laurit deleted the copilot/remove-attributes-extractor-util branch February 17, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants