-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pkg/stanza] Fix recombine operator's 'overwrite_with' #30786
[pkg/stanza] Fix recombine operator's 'overwrite_with' #30786
Conversation
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
This updates the documentation according to changes in #30786
This updates the documentation according to changes in #30786
…y#30786) Fixes open-telemetry#30783 --------- Co-authored-by: Yang Song <songy23@users.noreply.github.com>
…metry#30796) This updates the documentation according to changes in open-telemetry#30786
if r.overwriteWithOldest { | ||
base = entries[0] | ||
} else { | ||
base = entries[len(entries)-1] | ||
} else { | ||
base = entries[0] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@djaglowski Sorry, I don't quite understand this change. When overwrite_with = 'oldest', doesn't it mean that the attributes of the earliest entry are used? The change will use the latest entry as the base entry when overwrite_with = 'oldest'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I got it backwards. I've opened #32146 to correct it.
Effectively reverts #30786, due to error pointed out by @yutingcaicyt [here](#30786 (comment)).
Fixes #30783