-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Breaking Change: Change confmap.Provider to return pointer to Retrieved. #5839
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
Conversation
5433704
to
6b2cd18
Compare
I need to get @open-telemetry/collector-approvers consensus, since this is a breaking change without deprecation. |
Codecov Report
@@ Coverage Diff @@
## main #5839 +/- ##
=======================================
Coverage 91.82% 91.82%
=======================================
Files 195 195
Lines 11920 11920
=======================================
Hits 10945 10945
Misses 768 768
Partials 207 207
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This change makes implementations cleaner, since they can return `nil, err` in case of an error instead of a zero initialized Retrieved. This is a breaking change, but there are very very few implementation of the Provider, so it should be safe to just break it. Signed-off-by: Bogdan <[email protected]>
6b2cd18
to
3669bcc
Compare
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.
LGTM, I am fine with breaking this in one go
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.
This is a breaking change, but there are very very few implementation of the Provider, so it should be safe to just break it.
Is there a way to know this outside of the repository? I agree with this change, however i would prefer we follow the same path we always do for breaking changes.
|
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.
Right, since any changes to the interface would cause any implementor to need to update anyways. I'm ok going forward with this.
S3 provider is here, I think: open-telemetry/opentelemetry-collector-contrib/pull/13113 |
Looks like we have 3 approvers, and first provider coming to contrib soon. I will merge this and update contrib so we can have that one implementing the new interface. |
That's a great work, I will fix my s3provider PR according to this. |
This change makes implementations cleaner, since they can return
nil, err
in case of an error instead of a zero initialized Retrieved.This is a breaking change, but there are very very few implementation of the Provider, so it should be safe to just break it.
Signed-off-by: Bogdan [email protected]