Skip to content
Snippets Groups Projects
Commit f1cc0ef2 authored by Jan Waller's avatar Jan Waller
Browse files

fix for meta-monitoring

parent 84f6d461
No related branches found
No related tags found
No related merge requests found
...@@ -87,11 +87,13 @@ public final class MonitoredClassManualInstrumentation implements MonitoredClass ...@@ -87,11 +87,13 @@ public final class MonitoredClassManualInstrumentation implements MonitoredClass
private final static void triggerAfter(final boolean newTrace) { private final static void triggerAfter(final boolean newTrace) {
final TraceMetadata trace = TRACEREGISTRY.getTrace(); final TraceMetadata trace = TRACEREGISTRY.getTrace();
final String signature = SIGNATURE; if (null != trace) {
final String clazz = CLAZZ; final String signature = SIGNATURE;
CTRLINST.newMonitoringRecord(new AfterOperationEvent(TIME.getTime(), trace.getTraceId(), trace.getNextOrderId(), signature, clazz)); final String clazz = CLAZZ;
if (newTrace) { // close the trace CTRLINST.newMonitoringRecord(new AfterOperationEvent(TIME.getTime(), trace.getTraceId(), trace.getNextOrderId(), signature, clazz));
TRACEREGISTRY.unregisterTrace(); if (newTrace) { // close the trace
TRACEREGISTRY.unregisterTrace();
}
} }
} }
} }
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