File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ KMS_CONNECTOR_DATABASE_POOL_SIZE="10"
1414KMS_CONNECTOR_GATEWAY_URL=http://gateway-node:8546
1515KMS_CONNECTOR_KMS_CORE_ENDPOINTS=http://kms-core:50051
1616KMS_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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments