deadtrickster / prometheus.erl

Prometheus.io client in Erlang
MIT License
341 stars 117 forks source link

Move startup phase to handle_continue #150

Open luisguilhermemsalmeida opened 1 year ago

luisguilhermemsalmeida commented 1 year ago

The init/1 function on prometheus_sup is doing intensive work which is delaying the initialization of applications depending on this project. This PR proposes using the handle_continue callback to execute functions async

luisguilhermemsalmeida commented 1 year ago

Possible fix to https://github.com/deadtrickster/prometheus.erl/issues/81