metrics-spring icon indicating copy to clipboard operation
metrics-spring copied to clipboard

Report data before closing reporter

Open posto opened this issue 11 years ago • 0 comments

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

posto avatar Jan 20 '15 09:01 posto