Skip to content

Commit 534003f

Browse files
committed
fix(fhevm-cli): route local OTLP through collector
1 parent 5f61c98 commit 534003f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test-suite/fhevm/env/staging/.env.kms-connector

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ KMS_CONNECTOR_DATABASE_POOL_SIZE="10"
1414
KMS_CONNECTOR_GATEWAY_URL=http://gateway-node:8546
1515
KMS_CONNECTOR_KMS_CORE_ENDPOINTS=http://kms-core:50051
1616
KMS_CONNECTOR_GATEWAY_CHAIN_ID=54321
17-
OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
17+
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317
1818

1919
# =============================================================================
2020
# SERVICE CONFIGURATION

test-suite/fhevm/scripts/deploy-fhevm-stack.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,10 @@ prepare_local_env_file() {
372372
fi
373373

374374
if [[ "$component" == "coprocessor" ]]; then
375-
local otlp_endpoint="${preserved_otlp_endpoint:-http://jaeger:4317}"
375+
local otlp_endpoint="$preserved_otlp_endpoint"
376+
if [[ -z "$otlp_endpoint" || "$otlp_endpoint" == "http://jaeger:4317" ]]; then
377+
otlp_endpoint="http://otel-collector:4317"
378+
fi
376379
if grep -q '^OTEL_EXPORTER_OTLP_ENDPOINT=' "$local_env_file"; then
377380
sed -i.bak "s|^OTEL_EXPORTER_OTLP_ENDPOINT=.*|OTEL_EXPORTER_OTLP_ENDPOINT=${otlp_endpoint}|" "$local_env_file"
378381
else

0 commit comments

Comments
 (0)