diff --git a/changelog/unreleased/simplify-tracing.md b/changelog/unreleased/simplify-tracing.md index eb8be2478..8102f2152 100644 --- a/changelog/unreleased/simplify-tracing.md +++ b/changelog/unreleased/simplify-tracing.md @@ -5,3 +5,4 @@ to set one tracing config for all services at the same time. https://github.com/owncloud/product/issues/92 https://github.com/owncloud/ocis/pull/329 +https://github.com/owncloud/ocis/pull/409 diff --git a/pkg/command/store.go b/pkg/command/store.go index c25d0bc04..3b1f74ccf 100644 --- a/pkg/command/store.go +++ b/pkg/command/store.go @@ -35,6 +35,14 @@ func configureStore(cfg *config.Config) *svcconfig.Config { cfg.Store.Log.Pretty = cfg.Log.Pretty cfg.Store.Log.Color = cfg.Log.Color + if cfg.Tracing.Enabled { + cfg.Store.Tracing.Enabled = cfg.Tracing.Enabled + cfg.Store.Tracing.Type = cfg.Tracing.Type + cfg.Store.Tracing.Endpoint = cfg.Tracing.Endpoint + cfg.Store.Tracing.Collector = cfg.Tracing.Collector + cfg.Store.Tracing.Service = cfg.Tracing.Service + } + return cfg.Store }