@Test public void testProcessAbnormalExitWithoutState() { Operation op = new Operation(); collector.processAbnormalExit(op, new Throwable()); assertUnknownOperationContents(op); }
@Override protected void processAbnormalExit(Operation op, Throwable throwable) { State state = GrailsControllerStateKeeper.getAndDestroyThreadLocalState(); op.label(buildLabel(state)) .sourceCodeLocation(buildSourceCodeLocation(state)) ; }
GrailsControllerMetricCollector extends DefaultOperationCollector { @Override protected void processAbnormalExit(Operation op, Throwable throwable) { State state = GrailsControllerStateKeeper.getAndDestroyThreadLocalState(); op.label(buildLabel(state)) .sourceCodeLocation(buildSourceCodeLocation(state)) ; } }
GrailsControllerMetricCollector extends DefaultOperationCollector { @Override protected void processAbnormalExit(Operation op, Throwable throwable) { State state = GrailsControllerStateKeeper.getAndDestroyThreadLocalState(); op.label(buildLabel(state)) .sourceCodeLocation(buildSourceCodeLocation(state)) ; } GrailsControllerMetricCollector(); }
GrailsControllerMetricCollector extends DefaultOperationCollector { @Override protected void processAbnormalExit(Operation op, Throwable throwable) { State state = GrailsControllerStateKeeper.getAndDestroyThreadLocalState(); op.label(buildLabel(state)) .sourceCodeLocation(buildSourceCodeLocation(state)) ; } GrailsControllerMetricCollector(); @Override void processNormalExit(Operation op, Object returnValue); }
GrailsControllerMetricCollector extends DefaultOperationCollector { @Override protected void processAbnormalExit(Operation op, Throwable throwable) { State state = GrailsControllerStateKeeper.getAndDestroyThreadLocalState(); op.label(buildLabel(state)) .sourceCodeLocation(buildSourceCodeLocation(state)) ; } GrailsControllerMetricCollector(); @Override void processNormalExit(Operation op, Object returnValue); static final String UNKNOWN_ACTION; }