Merge pull request #103216 from dashpole/etcd_client_tracing

Add distributed tracing to the etcd client
This commit is contained in:
Kubernetes Prow Robot
2021-07-08 14:01:52 -07:00
committed by GitHub
8 changed files with 38 additions and 0 deletions

View File

@@ -411,6 +411,9 @@ func buildGenericConfig(
if genericConfig.EgressSelector != nil {
storageFactory.StorageConfig.Transport.EgressLookup = genericConfig.EgressSelector.Lookup
}
if utilfeature.DefaultFeatureGate.Enabled(genericfeatures.APIServerTracing) && genericConfig.TracerProvider != nil {
storageFactory.StorageConfig.Transport.TracerProvider = genericConfig.TracerProvider
}
if lastErr = s.Etcd.ApplyWithStorageFactoryTo(storageFactory, genericConfig); lastErr != nil {
return
}