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
private final static void triggerAfter(final boolean newTrace) {
final TraceMetadata trace = TRACEREGISTRY.getTrace();
final String signature = SIGNATURE;
final String clazz = CLAZZ;
CTRLINST.newMonitoringRecord(new AfterOperationEvent(TIME.getTime(), trace.getTraceId(), trace.getNextOrderId(), signature, clazz));
if (newTrace) { // close the trace
TRACEREGISTRY.unregisterTrace();
if (null != trace) {
final String signature = SIGNATURE;
final String clazz = CLAZZ;
CTRLINST.newMonitoringRecord(new AfterOperationEvent(TIME.getTime(), trace.getTraceId(), trace.getNextOrderId(), signature, clazz));
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