Skip to content

Commit

Permalink
use separator for otlp headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed Jun 24, 2024
1 parent e899c50 commit 82d8a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/metricspostcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

type MetricsPostCmd struct {
OTLPEndpoint string `name:"otlp-endpoint" required:"" env:"OTEL_EXPORTER_OTLP_ENDPOINT,OTEL_EXPORTER_OTLP_METRICS_ENDPOINT" help:"OTLP endpoint"`
OTLPHeaders map[string]string `name:"otlp-headers" env:"OTEL_EXPORTER_OTLP_HEADERS,OTEL_EXPORTER_OTLP_METRICS_HEADERS" help:"OTLP headers"`
OTLPHeaders map[string]string `name:"otlp-headers" mapsep:"," env:"OTEL_EXPORTER_OTLP_HEADERS,OTEL_EXPORTER_OTLP_METRICS_HEADERS" help:"OTLP headers"`
OTLPProtocol string `name:"otlp-protocol" env:"OTEL_EXPORTER_OTLP_PROTOCOL" default:"grpc" enum:"grpc,http" help:"OTLP protocol"`
OTLPInsecure bool `name:"otlp-insecure" help:"disable secure connection (required for such as localhost)"`
MetricName string `name:"name" short:"n" required:"" help:"metric name"`
Expand Down

0 comments on commit 82d8a72

Please sign in to comment.