From 8f531301174deb0403799861acc350dbd60c5ddf Mon Sep 17 00:00:00 2001 From: ShyunnY <1147212064@qq.com> Date: Wed, 10 Apr 2024 19:29:16 +0800 Subject: [PATCH] fix: use OTEL_EXPORTER_OTLP_ENDPOINT env Signed-off-by: ShyunnY <1147212064@qq.com> --- internal/infrastructure/kubernetes/ratelimit/resource.go | 2 +- .../ratelimit/testdata/deployments/enable-tracing-custom.yaml | 2 +- .../ratelimit/testdata/deployments/enable-tracing.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/infrastructure/kubernetes/ratelimit/resource.go b/internal/infrastructure/kubernetes/ratelimit/resource.go index 93360f09d80..7e7a9d3722d 100644 --- a/internal/infrastructure/kubernetes/ratelimit/resource.go +++ b/internal/infrastructure/kubernetes/ratelimit/resource.go @@ -90,7 +90,7 @@ const ( // TracingSamplingRateVar is trace sampling rate TracingSamplingRateVar = "TRACING_SAMPLING_RATE" // OTELExporterOTLPTraceEndpointVar is target url to which the trace exporter is going to send - OTELExporterOTLPTraceEndpointVar = "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT" + OTELExporterOTLPTraceEndpointVar = "OTEL_EXPORTER_OTLP_ENDPOINT" // InfraName is the name for rate-limit resources. InfraName = "envoy-ratelimit" diff --git a/internal/infrastructure/kubernetes/ratelimit/testdata/deployments/enable-tracing-custom.yaml b/internal/infrastructure/kubernetes/ratelimit/testdata/deployments/enable-tracing-custom.yaml index 53e22e1d6cb..b4c7d9472e9 100644 --- a/internal/infrastructure/kubernetes/ratelimit/testdata/deployments/enable-tracing-custom.yaml +++ b/internal/infrastructure/kubernetes/ratelimit/testdata/deployments/enable-tracing-custom.yaml @@ -93,7 +93,7 @@ spec: fieldPath: metadata.name - name: TRACING_SAMPLING_RATE value: "0.6" - - name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - name: OTEL_EXPORTER_OTLP_ENDPOINT value: http://trace-collector.envoy-gateway-system.svc.cluster.local:4317 image: envoyproxy/ratelimit:master imagePullPolicy: IfNotPresent diff --git a/internal/infrastructure/kubernetes/ratelimit/testdata/deployments/enable-tracing.yaml b/internal/infrastructure/kubernetes/ratelimit/testdata/deployments/enable-tracing.yaml index bee76879b02..e36ff5ef87d 100644 --- a/internal/infrastructure/kubernetes/ratelimit/testdata/deployments/enable-tracing.yaml +++ b/internal/infrastructure/kubernetes/ratelimit/testdata/deployments/enable-tracing.yaml @@ -93,7 +93,7 @@ spec: fieldPath: metadata.name - name: TRACING_SAMPLING_RATE value: "1.0" - - name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - name: OTEL_EXPORTER_OTLP_ENDPOINT value: http://trace-collector.envoy-gateway-system.svc.cluster.local:4318 image: envoyproxy/ratelimit:master imagePullPolicy: IfNotPresent