Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker Trace Diagnosis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Kieker
Kieker Trace Diagnosis
Commits
8247ef2f
Commit
8247ef2f
authored
7 years ago
by
Nils Christian Ehmke
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix in the monitoring
parent
fae77805
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
kieker-trace-diagnosis-architecture/src/main/java/kieker/diagnosis/architecture/monitoring/MonitoringProbe.java
+3
-6
3 additions, 6 deletions
...er/diagnosis/architecture/monitoring/MonitoringProbe.java
with
3 additions
and
6 deletions
kieker-trace-diagnosis-architecture/src/main/java/kieker/diagnosis/architecture/monitoring/MonitoringProbe.java
+
3
−
6
View file @
8247ef2f
...
...
@@ -18,7 +18,6 @@ import kieker.monitoring.core.registry.TraceRegistry;
public
final
class
MonitoringProbe
{
private
final
IMonitoringController
ivMonitoringController
;
private
static
final
ThreadLocal
<
TraceMetadata
>
cvTrace
=
new
ThreadLocal
<>(
);
private
final
Class
<?>
ivClass
;
private
final
String
ivMethod
;
...
...
@@ -47,13 +46,11 @@ public final class MonitoringProbe {
}
// Get the current trace or start a new one
TraceMetadata
trace
=
cv
Trace
.
get
(
);
TraceMetadata
trace
=
Trace
Registry
.
INSTANCE
.
getTrace
(
);
if
(
trace
==
null
)
{
// We have to remember that this is the start of a trace, as the trace has to be deregistered at the end.
ivNewTrace
=
true
;
trace
=
TraceRegistry
.
INSTANCE
.
registerTrace
(
);
cvTrace
.
set
(
trace
);
// Write a record for the new trace
ivMonitoringController
.
newMonitoringRecord
(
trace
);
...
...
@@ -73,7 +70,7 @@ public final class MonitoringProbe {
return
;
}
final
TraceMetadata
trace
=
cv
Trace
.
get
(
);
final
TraceMetadata
trace
=
Trace
Registry
.
INSTANCE
.
getTrace
(
);
final
String
className
=
ClassUtil
.
getRealName
(
ivClass
);
// Create the correct event depending on whether this method call failed or not
...
...
@@ -88,7 +85,7 @@ public final class MonitoringProbe {
// If this probe started the trace, it has to close it. Otherwise we could create a memory leak (and faulty monitoring behaviour).
if
(
ivNewTrace
)
{
cv
Trace
.
set
(
null
);
Trace
Registry
.
INSTANCE
.
unregisterTrace
(
);
}
}
...
...
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