owncloud / product

ownCloud Product Backlog
GNU Lesser General Public License v3.0
0 stars 1 forks source link

[FR] simplify tracing configuration #92

Open kulmann opened 4 years ago

kulmann commented 4 years ago

Idea / Context

As of now tracing has to be configured for every service individually. While this follows configuration standards for microservices, it would be nice for ocis single binary to forward a single tracing configuration to all services. This is something that we already do for logging.

Implementation

Have a look at the accounts command in ocis single binary: https://github.com/owncloud/ocis/blob/323ca3039e19f857d03957f8e09a6635badeb53e/pkg/command/accounts.go#L30

It sets the log config flags from ocis as the respective accounts config flags:

cfg.Accounts.Log.Level = cfg.Log.Level
cfg.Accounts.Log.Pretty = cfg.Log.Pretty
cfg.Accounts.Log.Color = cfg.Log.Color

We can do the same thing for tracing.

butonic commented 4 years ago

we need this for support and debbuging ourself

bonus points for

exalate-issue-sync[bot] commented 4 years ago

Remote key is https://jira.owncloud.com/browse/OC-2016

butonic commented 3 years ago

We also need a way to dynamically increase the level of tracing for a specific user, group, user agent, role ...