Skip to content
Snippets Groups Projects
Commit 6ec1a79c authored by David Georg Reichelt's avatar David Georg Reichelt
Browse files

Also apply MOOBENCH_CONFIGURATIONS in OpenTelemetry

parent 519e8fd9
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ fi
if [ -z "$MOOBENCH_CONFIGURATIONS" ]
then
MOOBENCH_CONFIGURATIONS="0 1 2 4 5 6"
MOOBENCH_CONFIGURATIONS="0 1 3 4"
echo "Setting default configuration $MOOBENCH_CONFIGURATIONS (without text logging)"
fi
echo "Running configurations: $MOOBENCH_CONFIGURATIONS"
......
......@@ -40,20 +40,35 @@ function cleanup {
## Execute Benchmark
function executeBenchmark() {
runNoInstrumentation
cleanup
runOpenTelemetryNoLogging
cleanup
runOpenTelemetryLogging
cleanup
runOpenTelemetryZipkin
cleanup
runOpenTelemetryPrometheus
cleanup
for index in $MOOBENCH_CONFIGURATIONS
do
if [ $index == 0 ]
then
runNoInstrumentation 0
cleanup
fi
if [ $index == 1 ]
then
runOpenTelemetryNoLogging 1
cleanup
fi
if [ $index == 2 ]
then
runOpenTelemetryLogging 2
cleanup
fi
if [ $index == 3 ]
then
runOpenTelemetryZipkin 3
cleanup
fi
if [ $index == 4 ]
then
runOpenTelemetryPrometheus 4
cleanup
fi
done
}
......@@ -74,7 +89,7 @@ function runNoInstrumentation {
function runOpenTelemetryNoLogging {
# OpenTelemetry Instrumentation Logging Deactivated
k=`expr ${k} + 1`
k=$1
info " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]}
echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]} >> "${BASE_DIR}/OpenTelemetry.log"
export BENCHMARK_OPTS="${JAVA_ARGS_OPENTELEMETRY_LOGGING_DEACTIVATED}"
......@@ -88,7 +103,7 @@ function runOpenTelemetryNoLogging {
function runOpenTelemetryLogging {
# OpenTelemetry Instrumentation Logging
k=`expr ${k} + 1`
k=$1
info " # ${i}.$RECURSION_DEPTH.${k} ${TITLE[$k]}"
echo " # ${i}.$RECURSION_DEPTH.${k} ${TITLE[$k]}" >> "${BASE_DIR}/OpenTelemetry.log"
export BENCHMARK_OPTS="${JAVA_ARGS_OPENTELEMETRY_LOGGING}"
......@@ -108,7 +123,7 @@ function runOpenTelemetryLogging {
function runOpenTelemetryZipkin {
# OpenTelemetry Instrumentation Zipkin
k=`expr ${k} + 1`
k=$1
startZipkin
info " # ${i}.$RECURSION_DEPTH.${k} ${TITLE[$k]}"
echo " # ${i}.$RECURSION_DEPTH.${k} ${TITLE[$k]}" >> "${BASE_DIR}/OpenTelemetry.log"
......@@ -125,7 +140,7 @@ function runOpenTelemetryZipkin {
function runOpenTelemetryJaeger {
# OpenTelemetry Instrumentation Jaeger
k=`expr ${k} + 1`
k=$1
startJaeger
info " # ${i}.$RECURSION_DEPTH.${k} ${TITLE[$k]}"
echo " # ${i}.$RECURSION_DEPTH.${k} ${TITLE[$k]}" >> "${BASE_DIR}/OpenTelemetry.log"
......@@ -142,7 +157,7 @@ function runOpenTelemetryJaeger {
function runOpenTelemetryPrometheus {
# OpenTelemetry Instrumentation Prometheus
k=`expr ${k} + 1`
k=$1
startPrometheus
info " # ${i}.$RECURSION_DEPTH.${k} ${TITLE[$k]}"
echo " # ${i}.$RECURSION_DEPTH.${k} ${TITLE[$k]}" >> "${BASE_DIR}/OpenTelemetry.log"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment