You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ScheduledReporter's close method calls its stop method, which calls report to report the metrics "one last time". This also happens if start has never been called.
In a SpringBoot application that registers a ScheduledReporter as a bean, this can lead to strange behavior since the stop method is automatically called by Spring Boot.
The text was updated successfully, but these errors were encountered:
My assumption is the logic was indeed "one last time" or metrics would be lost.
What's wrong with this? I suspect you could subclass and override close. And track with AtomicBoolean.compareAndSet
ScheduledReporter
'sclose
method calls itsstop
method, which callsreport
to report the metrics "one last time". This also happens ifstart
has never been called.In a SpringBoot application that registers a
ScheduledReporter
as a bean, this can lead to strange behavior since thestop
method is automatically called by Spring Boot.The text was updated successfully, but these errors were encountered: