Module: Qless::Middleware::Metriks::TimeJobsByClass
- Defined in:
- lib/qless/middleware/metriks.rb
Overview
Tracks the time jobs take, grouping the timings by the job class.
Instance Method Summary collapse
Instance Method Details
#around_perform(job) ⇒ Object
11 12 13 14 15 |
# File 'lib/qless/middleware/metriks.rb', line 11 def around_perform(job) ::Metriks.timer("qless.job-times.#{job.klass_name}").time do super end end |