From 7002d68543e766e399274a2557a00980580b2f0b Mon Sep 17 00:00:00 2001 From: Nikita Skrynnik Date: Fri, 14 Jan 2022 10:52:29 +1100 Subject: [PATCH] apply suggestions Signed-off-by: Nikita Skrynnik --- internal/config/config.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 5cff27fd..deb836ce 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -31,5 +31,5 @@ type Config struct { LogLevel string `default:"INFO" desc:"Log level" split_words:"true"` DialTimeout time.Duration `default:"100ms" desc:"Timeout for the dial the next endpoint" split_words:"true"` ForwarderNetworkServiceName string `default:"forwarder" desc:"the default service name for forwarder discovering" split_words:"true"` - OpenTelemetryCollectorURL string `default:"otel-collector.observability.svc.cluster.local:4317" desc:"OpenTelemetry Collector URL"` + OpenTelemetryEndpoint string `default:"otel-collector.observability.svc.cluster.local:4317" desc:"OpenTelemetry Collector Endpoint"` } diff --git a/main.go b/main.go index 18a6c931..a81ac7f3 100644 --- a/main.go +++ b/main.go @@ -83,7 +83,7 @@ func main() { // Configure Open Telemetry if opentelemetry.IsEnabled() { - collectorAddress := cfg.OpenTelemetryCollectorURL + collectorAddress := cfg.OpenTelemetryEndpoint spanExporter := opentelemetry.InitSpanExporter(ctx, collectorAddress) metricExporter := opentelemetry.InitMetricExporter(ctx, collectorAddress) o := opentelemetry.Init(ctx, spanExporter, metricExporter, "nsmgr")