Skip to content

Commit ecbf658

Browse files
committed
fix: use separate env variable from otel standard
1 parent 33ec88e commit ecbf658

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

http_proxy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ const (
8282
)
8383

8484
// getTelemetryEndpoint returns the OTEL endpoint to use for telemetry.
85-
// It checks the OTEL_EXPORTER_OTLP_ENDPOINT environment variable first,
85+
// It checks the CUSTOM_OTLP_ENDPOINT environment variable first,
8686
// falling back to the default if not set.
8787
func getTelemetryEndpoint() string {
88-
if endpoint := os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT"); endpoint != "" {
88+
if endpoint := os.Getenv("CUSTOM_OTLP_ENDPOINT"); endpoint != "" {
8989
return endpoint
9090
}
9191
return defaultTeleportHost

0 commit comments

Comments
 (0)