From 7b556a51cec4b059d7b4bc3decf9c6d6e0a91e4b Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Sun, 13 Jun 2021 23:29:52 -0700 Subject: [PATCH] vendor-dirty: patch unix dialer options Signed-off-by: Tonis Tiigi --- .../otel/exporters/otlp/internal/otlpconfig/envconfig.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor/go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig/envconfig.go b/vendor/go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig/envconfig.go index b52f3dc537a86..0db8a195fa617 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig/envconfig.go +++ b/vendor/go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig/envconfig.go @@ -74,6 +74,9 @@ func (e *EnvOptionsReader) GetOptionsFromEnv() []GenericOption { opts = append(opts, WithEndpoint(v)) } if v, ok := e.getEnvValue("TRACES_ENDPOINT"); ok { + if strings.HasPrefix(strings.ToLower(v), "unix://") { + opts = append(opts, WithInsecure()) + } opts = append(opts, WithTracesEndpoint(v)) } if v, ok := e.getEnvValue("METRICS_ENDPOINT"); ok {