Skip to content

Commit

Permalink
chore(tracing): rename cli key
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Sep 17, 2024
1 parent ad3a81f commit 1c85ab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tracing/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func FromCLIContext(c *cli.Context) (*Client, error) {
}

// read per-endpoint configurations from file
endpointsConfigPath := c.String("tracing.sampler.endpoints")
endpointsConfigPath := c.String("tracing.sampler.tasks")
if len(endpointsConfigPath) > 0 {
f, err := os.ReadFile(endpointsConfigPath)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tracing/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var Flags = []cli.Flag{

&cli.StringFlag{
EnvVars: []string{"VELA_OTEL_TRACING_SAMPLER_TASKS_CONFIG_FILEPATH"},
Name: "tracing.sampler.endpoints",
Name: "tracing.sampler.tasks",
Usage: "set an (optional) filepath to the otel tracing head-sampler configurations json to alter how certain tasks (endpoints, queries, etc) are sampled. when no path is provided all tasks are recorded using default parameters. see: https://opentelemetry.io/docs/concepts/sampling/",
},
}

0 comments on commit 1c85ab6

Please sign in to comment.