Skip to content

Commit dcfdeab

Browse files
committed
refactor(tracer): Use standard OpenTelemetry env var for endpoint
Signed-off-by: Loïc Saint-Roch <[email protected]>
1 parent 2e31eee commit dcfdeab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/tracer/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ func init() {
6262
}
6363

6464
// Set the OpenTelemetry traces' endpoint only if specified.
65-
if os.Getenv("OTEL_TRACES_ENDPOINT") != "" {
66-
opts = append(opts, otlptracegrpc.WithEndpoint(os.Getenv("OTEL_TRACES_ENDPOINT")))
65+
if os.Getenv("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT") != "" {
66+
opts = append(opts, otlptracegrpc.WithEndpoint(os.Getenv("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT")))
6767
}
6868

6969
// Create the trace exporter.

0 commit comments

Comments
 (0)