Skip to content
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

Change TLSClient config to pointer type #4104

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

mxiamxia
Copy link
Member

Description: <Describe what has changed.
Change TLSClient config to pointer type in confighttp and configgrpc config

Related Issue
#4028
#4063 (comment)

@mxiamxia mxiamxia requested review from a team and dmitryax September 24, 2021 04:12
if tlsCfg != nil {
transport.TLSClientConfig = tlsCfg

if hcs.TLSSetting != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be some inconsistency between how gRPC and HTTP handle nil tls section. gRPC looks at the scheme to decide whether to enable tls, HTTP does not do that.
Would be good to fix in a separate PR to make sure gRPC and HTTP clients behave the same way.

@tigrannajaryan tigrannajaryan merged commit ebb0fbd into open-telemetry:main Sep 27, 2021
codeboten pushed a commit to codeboten/opentelemetry-collector that referenced this pull request Oct 13, 2021
bogdandrutu pushed a commit that referenced this pull request Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants