metrics-spring
metrics-spring copied to clipboard
Report data before closing reporter
Hi,
A short suggestion to call reporter.report(); before calling reporter.close(), to ensure that the latest data is reported and avoid data loss, before application shutdown. (Especially useful when reporting to Graphite, for example).
https://github.com/ryantenney/metrics-spring/blob/f74a2800bb54003eaaf32514dc6741d81ca6316c/src/main/java/com/ryantenney/metrics/spring/config/annotation/MetricsConfigurerAdapter.java#L77
Regards, posto