-
Notifications
You must be signed in to change notification settings - Fork 2.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
[chore] [receiver/couchdb] Use confighttp.NewDefaultClientConfig instead of manually creating struct #35613
[chore] [receiver/couchdb] Use confighttp.NewDefaultClientConfig instead of manually creating struct #35613
Conversation
…ead of manually creating struct **Description:** This PR makes usage of `NewDefaultClientConfig` instead of manually creating the confighttp.ClientConfig struct. **Link to tracking Issue:** open-telemetry#35457
@@ -26,14 +26,14 @@ func NewFactory() receiver.Factory { | |||
} | |||
|
|||
func createDefaultConfig() component.Config { | |||
clientConfig := confighttp.NewDefaultClientConfig() | |||
clientConfig.TLSSetting = configtls.ClientConfig{} |
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.
clientConfig.TLSSetting = configtls.ClientConfig{} | |
clientConfig.TLSSetting = configtls.NewDefaultClientConfig() |
Should we update this reference too it's the same underlying concern?
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.
These changes are for confighttp
. I can create another issue for configtls
similarely to #35457 ?
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.
Sure, another issue would probably be good. It looks like the goal is to move all configs over the the NewDefault...
initialization, as noted here, but I understand it's unrelated to this PR so we don't have to do it yet. 👍
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.
…ead of manually creating struct (open-telemetry#35613) **Description:** This PR makes usage of `NewDefaultClientConfig` instead of manually creating the confighttp.ClientConfig struct. **Link to tracking Issue:** open-telemetry#35457
Description:
This PR makes usage of
NewDefaultClientConfig
instead of manually creating the confighttp.ClientConfig struct.Link to tracking Issue: #35457