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

Add option for registering trace but no writing (like Kieker NullWriter)

parent b073fdf9
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ function runNoInstrumentation { ...@@ -14,7 +14,6 @@ function runNoInstrumentation {
} }
function runInspectITDeactivated { function runInspectITDeactivated {
# InspectIT (minimal)
k=`expr ${k} + 1` k=`expr ${k} + 1`
echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]} echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]}
echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]} >>${BASE_DIR}/inspectIT.log echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]} >>${BASE_DIR}/inspectIT.log
...@@ -30,6 +29,22 @@ function runInspectITDeactivated { ...@@ -30,6 +29,22 @@ function runInspectITDeactivated {
sleep $SLEEP_TIME sleep $SLEEP_TIME
} }
function runInspectITNullWriter {
k=`expr ${k} + 1`
echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]}
echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]} >>${BASE_DIR}/inspectIT.log
sleep $SLEEP_TIME
${JAVABIN}java ${JAVAARGS_INSPECTIT_NULLWRITER} ${JAR} \
--output-filename ${RAWFN}-${i}-$RECURSION_DEPTH-${k}.csv \
--total-calls ${TOTAL_NUM_OF_CALLS} \
--method-time ${METHOD_TIME} \
--total-threads ${THREADS} \
--recursion-depth ${RECURSION_DEPTH} \
--force-terminate \
${MOREPARAMS} &> ${RESULTS_DIR}/output_"$i"_"$RECURSION_DEPTH"_$k.txt
sleep $SLEEP_TIME
}
function runInspectITZipkin { function runInspectITZipkin {
# InspectIT (minimal) # InspectIT (minimal)
...@@ -114,6 +129,7 @@ JAR="-jar MooBench.jar --application moobench.application.MonitoredClassSimple" ...@@ -114,6 +129,7 @@ JAR="-jar MooBench.jar --application moobench.application.MonitoredClassSimple"
JAVAARGS_NOINSTR="${JAVAARGS}" JAVAARGS_NOINSTR="${JAVAARGS}"
JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASE_DIR}/agent/inspectit-ocelot-agent-1.11.1.jar -Djava.util.logging.config.file=${BASE_DIR}/config/logging.properties" JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASE_DIR}/agent/inspectit-ocelot-agent-1.11.1.jar -Djava.util.logging.config.file=${BASE_DIR}/config/logging.properties"
JAVAARGS_INSPECTIT_DEACTIVATED="${JAVAARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.enabled=false -Dinspectit.config.file-based.path=${BASE_DIR}/config/onlyInstrument/" JAVAARGS_INSPECTIT_DEACTIVATED="${JAVAARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.enabled=false -Dinspectit.config.file-based.path=${BASE_DIR}/config/onlyInstrument/"
JAVAARGS_INSPECTIT_NULLWRITER="${JAVAARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.enabled=false -Dinspectit.config.file-based.path=${BASE_DIR}/config/nullWriter/"
JAVAARGS_INSPECTIT_ZIPKIN="${JAVAARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.url=http://127.0.0.1:9411/api/v2/spans -Dinspectit.config.file-based.path=${BASE_DIR}/config/zipkin/" JAVAARGS_INSPECTIT_ZIPKIN="${JAVAARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.url=http://127.0.0.1:9411/api/v2/spans -Dinspectit.config.file-based.path=${BASE_DIR}/config/zipkin/"
JAVAARGS_INSPECTIT_PROMETHEUS="${JAVAARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.zipkin.enabled=false -Dinspectit.exporters.metrics.prometheus.enabled=true -Dinspectit.config.file-based.path=${BASE_DIR}/config/prometheus/" JAVAARGS_INSPECTIT_PROMETHEUS="${JAVAARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.zipkin.enabled=false -Dinspectit.exporters.metrics.prometheus.enabled=true -Dinspectit.config.file-based.path=${BASE_DIR}/config/prometheus/"
...@@ -133,6 +149,9 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do ...@@ -133,6 +149,9 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do
runInspectITDeactivated runInspectITDeactivated
cleanup cleanup
runInspectITNullWriter
cleanup
runInspectITZipkin runInspectITZipkin
cleanup cleanup
......
inspectit:
instrumentation:
scopes:
's_moobench':
type:
name: 'MonitoredClass'
matcher-mode: 'CONTAINS'
rules:
'r_moobench':
enabled: true
include:
'r_trace_method': true # do not save anything
'r_capture_method_duration': false # do not save anything
scopes:
's_moobench': true
actions:
'a_do_nothing':
value-body: |
'if (true) {}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment