Simplify tracing config for ocis-store

This commit is contained in:
Benedikt Kulmann
2020-08-12 10:45:50 +02:00
parent 4a79f385c4
commit 95a1046378
2 changed files with 9 additions and 0 deletions

View File

@@ -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
}