-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add configopaque package #6470
Add configopaque package #6470
Conversation
Codecov ReportBase: 91.20% // Head: 91.18% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #6470 +/- ##
==========================================
- Coverage 91.20% 91.18% -0.02%
==========================================
Files 245 246 +1
Lines 14194 14196 +2
==========================================
Hits 12945 12945
- Misses 999 1001 +2
Partials 250 250
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
As I said on the PR description, I want to make sure we don't give up on this option just because of breaking changes: we have done many Go API breaking changes recently and I think it can be justified to do it here too if this is a better solution than struct tags. We have to think about the long term: the majority of users of this API are in the future, not the present so if we can improve things now, even at a small annoyance for current users, I think this should be the way to go. The main two benefits I see of this option are:
I think this PR is representative of the changes that would be needed in contrib for updating each component (scaled by the number of components there that is :)) |
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
84745d8
to
250282c
Compare
I left only the
This would apply to both the header fields from If this makes sense, I will open a separate PR for doing this for headers on the |
Sounds like a plan! |
* [config/configopaque] Add configopaque.String type alias * Apply suggestions from code review Co-authored-by: Bogdan Drutu <lazy@splunk.com> * [configopaque] Add Headers type * Remove configopaque.Headers Co-authored-by: Bogdan Drutu <lazy@splunk.com>
* [config/configopaque] Add configopaque.String type alias * Apply suggestions from code review Co-authored-by: Bogdan Drutu <lazy@splunk.com> * [configopaque] Add Headers type * Remove configopaque.Headers Co-authored-by: Bogdan Drutu <lazy@splunk.com>
Description:
Add a
configopaque.String
type alias. This is the original proposal from #5653. I wanted to try this option out to make sure everyone understands the extent of breaking changes since, as mentioned on #5653 (comment), they should be minimal (as they only affect the Go API).Link to tracking Issue: Updates #5653