Closed SamSaffron closed 2 years ago
Periodic instrumentation now follows a general pattern where they inherit from PeriodicStats.
This implementation ensures proper management of backing thread
All classes inheriting now have a .started? method to determine if instrument is started
All classes implement a clean .stop method for stopping active periodic instrumentation
Consumers of the class get to write less code repeat code due to worker_loop
We're encountering this issue https://github.com/discourse/prometheus_exporter/issues/222 after upgrading to 2.0.1.
Our mitigation: rollback to 2.0.0
Periodic instrumentation now follows a general pattern where they inherit from PeriodicStats.
This implementation ensures proper management of backing thread
All classes inheriting now have a .started? method to determine if instrument is started
All classes implement a clean .stop method for stopping active periodic instrumentation
Consumers of the class get to write less code repeat code due to worker_loop