Skip to content

Commit

Permalink
fix: use OTEL_EXPORTER_OTLP_ENDPOINT env
Browse files Browse the repository at this point in the history
Signed-off-by: ShyunnY <1147212064@qq.com>
  • Loading branch information
ShyunnY committed Apr 10, 2024
1 parent 835fb0f commit 8f53130
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/infrastructure/kubernetes/ratelimit/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f53130

Please sign in to comment.