-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Updating method definitions to reflect contribution guide changes #4865
Updating method definitions to reflect contribution guide changes #4865
Conversation
It should be going through a deprecation process established recently for this repo https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#breaking-changes |
Codecov Report
@@ Coverage Diff @@
## main #4865 +/- ##
=======================================
Coverage 90.64% 90.64%
=======================================
Files 180 180
Lines 10627 10627
=======================================
Hits 9633 9633
Misses 776 776
Partials 218 218
Continue to review full report at Codecov.
|
@dmitryax, I am not entirely keen on adding test coverage for the deprecated method wrappers since it would trip over the linter (gosec) though I am not sure if that is reasonable. |
config/confighttp/confighttp.go
Outdated
// DefaultHTTPClientSettings returns HTTPClientSettings type object with | ||
// Deprecated: [v0.45.0] Use NewDefaultHTTPClientSettings instead. | ||
func DefaultHTTPClientSettings() HTTPClientSettings { | ||
return NewDefaultHTTPClientSettings() |
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.
Using alias will make codecov happy
var DefaultHTTPClientSettings = NewDefaultHTTPClientSettings
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.
If this works, mind if I update the recommendation inside the contribution guide?
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.
Go for it in a separate PR :)
ad2e9bf
to
23012cc
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.
sed/[v0.45.0]/[v0.46.0]
sed/[v0.44.0]/[v0.46.0]
23012cc
to
9c8921e
Compare
@bogdandrutu , rebased with main and updated the deprecated version numbers. |
A CHNAGELOG entry would make this PR ready to merge :) |
0efdb09
to
24387eb
Compare
45cbac9
to
9b07d5f
Compare
Description:
Addresses how methods must be defined depending on their purpose according to the contribution guide.
Link to tracking Issue:
Closes #4471
Testing:
N/A
Documentation:
Already exists in the contribution guide.
I did have a thought of keeping the existing method but marking the exported method as deprecated to not immediately force changes inside the collector contrib on next release, not sure what is preferred here.