zio/zio-zmx

Replace `listen` methods of `Metrics.Service` by layer mechanism

Closed this issue · 1 comments

Metrics.Service offers listen methods that are used to provide "senders" for aggregated metrics. There is nothing that prevents one from registering multiple senders. In that case multiple collect daemons would compete in polling metrics from the underlying shared ring buffer. This results in surprising behavior.

I take a stab on this one.