From 1f5bd549d6704c0694300a1904e56bc6815fa08c Mon Sep 17 00:00:00 2001 From: Marcin Kaciuba Date: Mon, 22 May 2023 07:51:55 +0200 Subject: [PATCH] fix: httptracing for s3 --- pkg/config/types.go | 1 + pkg/storage/storage.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/config/types.go b/pkg/config/types.go index 7878187..f2b900e 100644 --- a/pkg/config/types.go +++ b/pkg/config/types.go @@ -116,6 +116,7 @@ type Storage struct { SFTPHostBasePath string `yaml:"sftpBasePath"` // base path for sftp storage AzureAccount string `yaml:"azureAccount,omitempty"` // azure account name AzureKey string `yaml:"azureKey,omitempty"` // azure key + HTTPTracing string `yaml:"HTTPTracing,omitempty" default:"false"` Hash string // unique hash for given storage } diff --git a/pkg/storage/storage.go b/pkg/storage/storage.go index 55a3d68..c1c7473 100644 --- a/pkg/storage/storage.go +++ b/pkg/storage/storage.go @@ -381,6 +381,7 @@ func getClient(obj *object.FileObject) (storageClient, error) { s3Storage.ConfigSecretKey: storageCfg.SecretAccessKey, s3Storage.ConfigRegion: storageCfg.Region, s3Storage.ConfigEndpoint: storageCfg.Endpoint, + s3Storage.ConfigHTTPTracing: storageCfg.HTTPTracing, } case "local-meta": config = stow.ConfigMap{