Closed frigus02 closed 8 months ago
Use channel only for the stop message. Use AtomicBool for is_collecting and Mutex for metrics.
This simplifies the setup. No need to worry about the channel size. The mutex is only locked while collecting and it seems fast enough.
Use channel only for the stop message. Use AtomicBool for is_collecting and Mutex for metrics.
This simplifies the setup. No need to worry about the channel size. The mutex is only locked while collecting and it seems fast enough.