in ffwd-reporter/src/main/java/com/spotify/metrics/ffwd/FastForwardReporter.java [445:458]
public void stopWithFlush() {
if (scheduledFuture != null) {
scheduledFuture.cancel(false);
}
if (executorOwner) {
executorService.shutdown();
}
try {
log.info("Final flush of metrics.");
report();
} catch (final Exception e) {
log.error("Error during final flush of metrics: ", e);
}
}