add tracing

This commit is contained in:
A.Unger
2020-03-10 15:15:22 +01:00
parent 065c8a2475
commit dfd6bfa2cc
2 changed files with 7 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.BoolFlag{
Name: "tracing-enabled",
Value: false,
Usage: "Enable sending traces",
EnvVars: []string{"OCS_TRACING_ENABLED"},
Destination: &cfg.Tracing.Enabled,