Work trace prototype - adds stackdriver svc acct to global config so it can be backend agnostic
@@ -262,6 +262,9 @@ var (
NewConfigDef("Infra", &cli.StringFlag{
Usage: "infra tag, e.g. gce or ec2",
}),
+ NewConfigDef("stackdriver-trace-account-json", &cli.StringFlag{
+ Usage: "file path or JSON to stackdriver trace on Google Cloud ",
+ }),
}
// Flags is the list of all CLI flags accepted by travis-worker
@@ -420,6 +423,7 @@ type Config struct {
PayloadFilterExecutable string `config:"payload-filter-executable"`
ProgressType string `config:"progress-type"`
Infra string `config:"infra"`
+ StackdriverTraceAccountJSON string `config:"stackdriver-trace-account-json"`
ProviderConfig *ProviderConfig
}
