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 {
}
function runInspectITDeactivated {
# InspectIT (minimal)
k=`expr ${k} + 1`
echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]}
echo " # ${i}.$RECURSION_DEPTH.${k} "${TITLE[$k]} >>${BASE_DIR}/inspectIT.log
......@@ -30,6 +29,22 @@ function runInspectITDeactivated {
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 {
# InspectIT (minimal)
......@@ -114,6 +129,7 @@ JAR="-jar MooBench.jar --application moobench.application.MonitoredClassSimple"
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_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_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/"
......@@ -132,6 +148,9 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do
runInspectITDeactivated
cleanup
runInspectITNullWriter
cleanup
runInspectITZipkin
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.
Finish editing this message first!
Please register or to comment