prometheus_exporter/test
Sam f0167e02a9
FIX: ensure threads do not leak when #start is called (#219)
* FIX: ensure threads do not leak when #start is called

Periodic instrumentation now follows a general pattern where they
inherit from PeriodicStats.

This implementation ensures proper management of backing thread

1. All classes inheriting now have a .started? method to determine
if instrument is started

2. All classes implement a clean .stop method for stopping active
periodic instrumentation

3. Consumers of the class get to write less code repeat code due
to worker_loop
2022-02-24 11:34:39 +11:00
..
instrumentation Minor test refactoring 2021-11-23 11:14:20 +11:00
metric FEATURE: support custom histogram buckets 2022-02-01 11:58:50 +11:00
server FIX: ensure threads do not leak when #start is called (#219) 2022-02-24 11:34:39 +11:00
client_test.rb Minor test refactoring 2021-11-23 11:14:20 +11:00
custom_type_collector.rb DEV: add frozen_string_literal 2019-05-15 11:56:50 +10:00
middleware_test.rb Minor test refactoring 2021-11-23 11:14:20 +11:00
prometheus_exporter_test.rb Minor test refactoring 2021-11-23 11:14:20 +11:00
test_helper.rb DEV: add frozen_string_literal 2019-05-15 11:56:50 +10:00