Skip to content

Use union instead of intersection for attributes#55

Draft
trask wants to merge 1 commit into
mainfrom
fix/union-span-event-attrs
Draft

Use union instead of intersection for attributes#55
trask wants to merge 1 commit into
mainfrom
fix/union-span-event-attrs

Conversation

@trask

@trask trask commented Apr 5, 2026

Copy link
Copy Markdown
Owner

There are pros/cons, probably need to think more about this...

@trask trask force-pushed the fix/union-span-event-attrs branch 3 times, most recently from df05200 to 9b3dca2 Compare April 5, 2026 17:46
@trask trask marked this pull request as draft April 6, 2026 02:43
@trask trask changed the title Fix: use union instead of intersection for span and event attributes Use union instead of intersection for span and event attributes Apr 6, 2026
@trask trask changed the title Use union instead of intersection for span and event attributes Use union instead of intersection for attributes Apr 6, 2026
Span per_type_attrs and event_attrs were using intersection_update,
meaning an attribute was only counted as present if it appeared in every
sample. Changed to union so an attribute is present if it appears in any
sample.

Also removed the now-redundant per_type_any_attrs field since it is
identical to per_type_attrs after this fix.
@trask trask force-pushed the fix/union-span-event-attrs branch from 9b3dca2 to 61787e9 Compare April 6, 2026 22:27
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