open-telemetry / opentelemetry-collector

OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
4.49k stars 1.48k forks source link

[configtls] [config/confighttp] Use configtls.NewDefaultClientConfig(), configtls.NewDefaultConfig() and configtls.NewDefaultServerConfig() #11689

Open wasim-nihal opened 4 days ago

wasim-nihal commented 4 days ago

Description

[config/confighttp] Changes to move away from manually creating configtls.ClientConfig, configtls.Config and configtls.ServerConfig in favor of using configtls.NewDefaultClientConfig, configtls.NewDefaultClientConfig(), configtls.NewDefaultConfig() and configtls.NewDefaultServerConfig() respectively.

Link to tracking issue

Fixes https://github.com/open-telemetry/opentelemetry-collector/issues/11383