Skip to content

Commit

Permalink
Merge pull request #3508 from goller/fix/otlp-env-var-spelling
Browse files Browse the repository at this point in the history
fix(tracing): spelling of OTEL_TRACES_EXPORTER value
  • Loading branch information
AkihiroSuda authored Jan 16, 2023
2 parents 7bd7285 + de41f3f commit c521afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/tracing/detect/otlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c521afd

Please sign in to comment.