iopsystems / rezolus

Systems performance telemetry
Other
64 stars 9 forks source link

use join_all to await on all samplers #346

Closed brayniac closed 2 months ago

brayniac commented 2 months ago

Instead of looping through each sampler and sequentially await'ing we can use join_all on the set of all sampler futures.

Result

Reduces sampling (and therefore HTTP metrics endpoint) latency by executing the sampler futures concurrently.