It might be worthwhile to look into adding a prometheus metric for measuring the time taken by tasks from receiving a message to actually sending said message over to the next step. This should be possible to be achieved with a Histogram metric for each task we have.
https://docs.rs/prometheus-client/latest/prometheus_client/metrics/histogram/struct.Histogram.html
https://prometheus.io/docs/practices/histograms/
It might be worthwhile to look into adding a prometheus metric for measuring the time taken by tasks from receiving a message to actually sending said message over to the next step. This should be possible to be achieved with a Histogram metric for each task we have.
https://docs.rs/prometheus-client/latest/prometheus_client/metrics/histogram/struct.Histogram.html
https://prometheus.io/docs/practices/histograms/