@Override
  public void endFunctionExecution(long startTime, boolean haveResult) {
    long elapsedNanos = clock.getAsLong() - startTime;

    successTimer.record(elapsedNanos, NANOSECONDS);

    statistics.incInt(functionExecutionsCompletedId, 1);
    statistics.incInt(functionExecutionsRunningId, -1);

    if (timeStatisticsEnabled.getAsBoolean()) {
      statistics.incLong(functionExecutionsCompletedProcessingTimeId, elapsedNanos);
    }

    if (haveResult) {
      statistics.incInt(functionExecutionsHasResultRunningId, -1);

      if (timeStatisticsEnabled.getAsBoolean()) {
        statistics.incLong(functionExecutionsHasResultCompletedProcessingTimeId, elapsedNanos);
      }
    }

    aggregateStatistics.endFunctionExecutionWithElapsedTime(elapsedNanos, haveResult);
  }
Total number of exceptions occurred while executing function
geode-core/src/main/java/org/apache/geode/internal/cache/execute/metrics/FunctionStatsImpl.java