This commit is contained in:
David Kydd 2025-03-05 11:30:59 -08:00 committed by GitHub
commit 2c849c9934
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -73,7 +73,7 @@ func (m *Manager) ApplyConfig(cfg *config.Config) error {
// set, we have to restart the manager to make sure that new TLS // set, we have to restart the manager to make sure that new TLS
// certificates are picked up. // certificates are picked up.
var blankTLSConfig config_util.TLSConfig var blankTLSConfig config_util.TLSConfig
if reflect.DeepEqual(m.config, cfg.TracingConfig) && m.config.TLSConfig == blankTLSConfig { if reflect.DeepEqual(m.config, cfg.TracingConfig) && reflect.DeepEqual(m.config.TLSConfig, blankTLSConfig) {
return nil return nil
} }

View file

@ -83,6 +83,7 @@ func TestReinstallingTracerProviderWithTLS(t *testing.T) {
ClientType: config.TracingClientGRPC, ClientType: config.TracingClientGRPC,
TLSConfig: config_util.TLSConfig{ TLSConfig: config_util.TLSConfig{
CAFile: "testdata/ca.cer", CAFile: "testdata/ca.cer",
NextProtos: []string{"h2"},
}, },
}, },
} }