Skip to content

Commit

Permalink
updating otel-endpoint flag name
Browse files Browse the repository at this point in the history
Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Jan 5, 2024
1 parent c7f31e1 commit 18edba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/metrics/exporters/opentelemetry/opentelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const (
)

var (
otlpEndPoint = flag.String("otlp-end-point", "", "Opentelemetry exporter endpoint")
otlpEndPoint = flag.String("otlp-endpoint", "", "Opentelemetry exporter endpoint")
metricInterval = flag.Duration("otlp-metric-interval", defaultMetricsCollectInterval, "interval to read metrics for opentelemetry exporter. defaulted to 10 secs if unspecified")
)

func Start(ctx context.Context) error {
if *otlpEndPoint == "" {
return fmt.Errorf("otlp-end-point must be specified")
return fmt.Errorf("otlp-endpoint must be specified")
}
exp, err := otlpmetrichttp.New(ctx, otlpmetrichttp.WithInsecure(), otlpmetrichttp.WithEndpoint(*otlpEndPoint))
if err != nil {
Expand Down

0 comments on commit 18edba5

Please sign in to comment.