From 22e0ce00dd7ffd3edc55e6b1d2b3ef453c0d590a Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Fri, 9 Feb 2024 01:54:25 -0800 Subject: [PATCH] Fix comment missing a dash for argument name (#31160) --- cmd/telemetrygen/internal/common/config.go | 2 +- cmd/telemetrygen/internal/traces/traces.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/telemetrygen/internal/common/config.go b/cmd/telemetrygen/internal/common/config.go index 154b2fd4a43f2..6b40bb7dac058 100644 --- a/cmd/telemetrygen/internal/common/config.go +++ b/cmd/telemetrygen/internal/common/config.go @@ -132,7 +132,7 @@ func (c *Config) CommonFlags(fs *pflag.FlagSet) { c.ResourceAttributes = make(map[string]string) fs.Var(&c.ResourceAttributes, "otlp-attributes", "Custom resource attributes to use. The value is expected in the format key=\"value\"."+ "Note you may need to escape the quotes when using the tool from a cli."+ - "Flag may be repeated to set multiple attributes (e.g -otlp-attributes key1=\"value1\" -otlp-attributes key2=\"value2\")") + "Flag may be repeated to set multiple attributes (e.g --otlp-attributes key1=\"value1\" --otlp-attributes key2=\"value2\")") c.TelemetryAttributes = make(map[string]string) fs.Var(&c.TelemetryAttributes, "telemetry-attributes", "Custom telemetry attributes to use. The value is expected in the format \"key=\\\"value\\\"\". "+ diff --git a/cmd/telemetrygen/internal/traces/traces.go b/cmd/telemetrygen/internal/traces/traces.go index 7db91503d95e6..5f3529253cf19 100644 --- a/cmd/telemetrygen/internal/traces/traces.go +++ b/cmd/telemetrygen/internal/traces/traces.go @@ -79,7 +79,7 @@ func Start(cfg *Config) error { } var attributes []attribute.KeyValue - // may be overridden by `-otlp-attributes service.name="foo"` + // may be overridden by `--otlp-attributes service.name="foo"` attributes = append(attributes, semconv.ServiceNameKey.String(cfg.ServiceName)) attributes = append(attributes, cfg.GetAttributes()...)