Skip to content

Commit

Permalink
fix(tracing): spelling of OTEL_TRACES_EXPORTER value
Browse files Browse the repository at this point in the history
This checks if the OTEL_TRACES_EXPORTER is "otlp."

Signed-off-by: Chris Goller <[email protected]>
(cherry picked from commit de41f3f)
  • Loading branch information
goller authored and tonistiigi committed Jan 17, 2023
1 parent 0282ebe commit 822a6ec
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 822a6ec

Please sign in to comment.