Skip to content

Commit de41f3f

Browse files
committed
fix(tracing): spelling of OTEL_TRACES_EXPORTER value
This checks if the OTEL_TRACES_EXPORTER is "otlp." Signed-off-by: Chris Goller <[email protected]>
1 parent 7bd7285 commit de41f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/tracing/detect/otlp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func init() {
1616
}
1717

1818
func otlpExporter() (sdktrace.SpanExporter, error) {
19-
set := os.Getenv("OTEL_TRACES_EXPORTER") == "otpl" || os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT") != "" || os.Getenv("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT") != ""
19+
set := os.Getenv("OTEL_TRACES_EXPORTER") == "otlp" || os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT") != "" || os.Getenv("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT") != ""
2020
if !set {
2121
return nil, nil
2222
}

0 commit comments

Comments
 (0)