From cd2b5547777d24ee5589f3a0b538d633b33ab717 Mon Sep 17 00:00:00 2001 From: Olexandr88 Date: Tue, 14 Apr 2026 14:50:08 +0300 Subject: [PATCH 1/2] fix: use OTLP env vars instead of hardcoded telemetry URLs --- scripts/train-solana-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/train-solana-test.sh b/scripts/train-solana-test.sh index 55699e591..8569d79d2 100755 --- a/scripts/train-solana-test.sh +++ b/scripts/train-solana-test.sh @@ -60,7 +60,7 @@ else --micro-batch-size ${BATCH_SIZE} \ --logs "console" \ --authorizer ${AUTHORIZER} \ - --oltp-metrics-url "http://localhost:4318/v1/metrics" \ - --oltp-logs-url "http://localhost:4318/v1/logs" \ + --otlp-metrics-url "${OTLP_METRICS_URL}" \ + --otlp-logs-url "${OTLP_LOGS_URL}" \ "$@" fi From 7936f48e14c2f599425c981d698d43c0359abc06 Mon Sep 17 00:00:00 2001 From: Olexandr88 Date: Mon, 20 Apr 2026 17:13:02 +0300 Subject: [PATCH 2/2] fix: validate both OTLP env vars are set before enabling telemetry --- scripts/train-solana-test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/train-solana-test.sh b/scripts/train-solana-test.sh index 8569d79d2..212f234ab 100755 --- a/scripts/train-solana-test.sh +++ b/scripts/train-solana-test.sh @@ -35,7 +35,10 @@ solana airdrop 10 "$(solana-keygen pubkey ${WALLET_FILE})" --url "${RPC}" || tru export RUST_LOG="info,psyche=debug" -if [[ "$OTLP_METRICS_URL" == "" ]]; then +if [[ -n "${OTLP_METRICS_URL}" && -z "${OTLP_LOGS_URL}" ]]; then + echo "ERROR: OTLP_METRICS_URL is set but OTLP_LOGS_URL is missing" + exit 1 +elif [[ -z "${OTLP_METRICS_URL}" ]]; then cargo run --release --bin psyche-solana-client -- \ train \ --wallet-private-key-path ${WALLET_FILE} \