implement tracing in the account service

This commit is contained in:
David Christofas
2020-12-04 14:28:59 +01:00
parent 864ab57e9b
commit 0c4d46ee2f
8 changed files with 222 additions and 18 deletions
+6 -1
View File
@@ -44,7 +44,12 @@ func configureAccounts(cfg *config.Config) *svcconfig.Config {
cfg.Accounts.Log.Color = cfg.Log.Color
cfg.Accounts.Server.Version = version.String
// TODO: we need tracing on the accounts service as well. when we have it, apply default config from OCIS here.
if cfg.Tracing.Enabled {
cfg.Accounts.Tracing.Enabled = cfg.Tracing.Enabled
cfg.Accounts.Tracing.Type = cfg.Tracing.Type
cfg.Accounts.Tracing.Endpoint = cfg.Tracing.Endpoint
cfg.Accounts.Tracing.Collector = cfg.Tracing.Collector
}
if cfg.TokenManager.JWTSecret != "" {
cfg.Accounts.TokenManager.JWTSecret = cfg.TokenManager.JWTSecret