@@ -658,6 +658,8 @@ set -e
658
658
kill $SERVER_PID
659
659
wait $SERVER_PID
660
660
661
+ set +e
662
+
661
663
# Check opentelemetry trace exporter sends proper info.
662
664
# A helper python script starts listenning on $OTLP_PORT, where
663
665
# OTLP exporter sends traces.
@@ -673,6 +675,12 @@ SERVER_ARGS="--trace-config=level=TIMESTAMPS --trace-config=rate=1 \
673
675
--trace-config=opentelemetry,url=localhost:$OTLP_PORT \
674
676
--model-repository=$MODELSDIR "
675
677
SERVER_LOG=" ./inference_server_trace_config.log"
678
+
679
+ # Increasing OTLP timeout, since we don't use a valid OTLP collector
680
+ # and don't send a proper signal back.
681
+ export OTEL_EXPORTER_OTLP_TIMEOUT=50000
682
+ export OTEL_EXPORTER_OTLP_TRACES_TIMEOUT=50000
683
+
676
684
run_server
677
685
if [ " $SERVER_PID " == " 0" ]; then
678
686
echo -e " \n***\n*** Failed to start $SERVER \n***"
684
692
apt-get update && apt-get install -y netcat
685
693
nc -l -k 127.0.0.1 $OTLP_PORT >> $TRACE_COLLECTOR_LOG 2>&1 & COLLECTOR_PID=$!
686
694
695
+ set +e
687
696
# Preparing traces for unittest.
688
697
# Note: need to run this separately, to speed up trace collection.
689
698
# Otherwise internal (opentelemetry_unittest.OpenTelemetryTest.setUp) check
690
699
# will slow down collection.
691
- python -c ' import opentelemetry_unittest; opentelemetry_unittest.prepare_traces()' >> $CLIENT_LOG 2>&1
700
+ python -c ' import opentelemetry_unittest; \
701
+ opentelemetry_unittest.prepare_traces()' >> $CLIENT_LOG 2>&1
692
702
693
- set +e
694
703
# Unittest will not start untill expected number of spans is collected.
695
704
python $OPENTELEMETRY_TEST >> $OPENTELEMETRY_LOG 2>&1
696
705
if [ $? -ne 0 ]; then
0 commit comments