svroonland/rezilience

Metrics for Timeout

Opened this issue · 0 comments

Periodically emit retry metrics from Timeout for monitoring and alerting purposes:

  • Add parameter metricsCollector: Timeout.Metrics => UIO[Unit] to Timeout.make
  • Add metricsInterval: Duration to customize the metrics emission interval
  • Emit metrics before end of use of the policy
  • Metrics:
    • histogram of the execution time
  • Some parameter(s) to configure the histogram buckets?
  • Metrics objects should be summable (including the histogram) to get the total metrics in some period, like in the zio-kinesis Producer