From de41f3f6018a9db947ca0e900d3052f39e7c2e89 Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Sun, 15 Jan 2023 12:47:51 -0600 Subject: [PATCH] fix(tracing): spelling of OTEL_TRACES_EXPORTER value This checks if the OTEL_TRACES_EXPORTER is "otlp." Signed-off-by: Chris Goller --- util/tracing/detect/otlp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/tracing/detect/otlp.go b/util/tracing/detect/otlp.go index 2bea75c1c663..aa68f876ef20 100644 --- a/util/tracing/detect/otlp.go +++ b/util/tracing/detect/otlp.go @@ -16,7 +16,7 @@ func init() { } func otlpExporter() (sdktrace.SpanExporter, error) { - set := os.Getenv("OTEL_TRACES_EXPORTER") == "otpl" || os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT") != "" || os.Getenv("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT") != "" + set := os.Getenv("OTEL_TRACES_EXPORTER") == "otlp" || os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT") != "" || os.Getenv("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT") != "" if !set { return nil, nil }