Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moobench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SustainKieker
moobench
Commits
69e86543
Commit
69e86543
authored
1 year ago
by
David Georg Reichelt
Browse files
Options
Downloads
Patches
Plain Diff
Refactor OpenTelemetry: Use case instead of multiple ifs
parent
a8098446
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frameworks/OpenTelemetry-java/functions.sh
+8
-25
8 additions, 25 deletions
frameworks/OpenTelemetry-java/functions.sh
with
8 additions
and
25 deletions
frameworks/OpenTelemetry-java/functions.sh
+
8
−
25
View file @
69e86543
...
@@ -42,32 +42,15 @@ function cleanup {
...
@@ -42,32 +42,15 @@ function cleanup {
function
executeBenchmark
()
{
function
executeBenchmark
()
{
for
index
in
$MOOBENCH_CONFIGURATIONS
for
index
in
$MOOBENCH_CONFIGURATIONS
do
do
if
[
$index
==
0
]
case
$index
in
then
0
)
runNoInstrumentation 0
;;
runNoInstrumentation 0
1
)
runOpenTelemetryNoLogging 1
;;
cleanup
2
)
runOpenTelemetryLogging 2
;;
fi
3
)
runOpenTelemetryZipkin 3
;;
4
)
runOpenTelemetryPrometheus 4
;;
esac
if
[
$index
==
1
]
cleanup
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
done
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment