Add distributed tracing to the etcd client

This commit is contained in:
David Ashpole
2021-06-25 11:54:53 -07:00
parent 9254610765
commit 71f810bb71
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
}