Apply oCIS tracing config to all services having tracing

This commit is contained in:
Benedikt Kulmann
2020-08-12 09:35:43 +02:00
parent 75e9506254
commit 86e344c92c
25 changed files with 209 additions and 0 deletions
+8
View File
@@ -35,6 +35,14 @@ func configureGraphExplorer(cfg *config.Config) *svcconfig.Config {
cfg.GraphExplorer.Log.Pretty = cfg.Log.Pretty
cfg.GraphExplorer.Log.Color = cfg.Log.Color
if cfg.Tracing.Enabled {
cfg.GraphExplorer.Tracing.Enabled = cfg.Tracing.Enabled
cfg.GraphExplorer.Tracing.Type = cfg.Tracing.Type
cfg.GraphExplorer.Tracing.Endpoint = cfg.Tracing.Endpoint
cfg.GraphExplorer.Tracing.Collector = cfg.Tracing.Collector
cfg.GraphExplorer.Tracing.Service = cfg.Tracing.Service
}
return cfg.GraphExplorer
}