Apply oCIS tracing config to all services having tracing

This commit is contained in:
Benedikt Kulmann
2020-06-22 16:22:09 +02:00
parent 75e9506254
commit 86e344c92c
25 changed files with 209 additions and 0 deletions

View File

@@ -35,6 +35,18 @@ func configureProxy(cfg *config.Config) *svcconfig.Config {
cfg.Proxy.Log.Pretty = cfg.Log.Pretty
cfg.Proxy.Log.Color = cfg.Log.Color
if cfg.Tracing.Enabled {
cfg.Proxy.Tracing.Enabled = cfg.Tracing.Enabled
cfg.Proxy.Tracing.Type = cfg.Tracing.Type
cfg.Proxy.Tracing.Endpoint = cfg.Tracing.Endpoint
cfg.Proxy.Tracing.Collector = cfg.Tracing.Collector
cfg.Proxy.Tracing.Service = cfg.Tracing.Service
}
if cfg.Reva.Reva.JWTSecret != "" {
cfg.Proxy.TokenManager.JWTSecret = cfg.Reva.Reva.JWTSecret
}
return cfg.Proxy
}