gitlab-org--gitlab-foss/lib/gitlab/metrics/background_transaction.rb

15 lines
283 B
Ruby
Raw Normal View History

module Gitlab
module Metrics
class BackgroundTransaction < Transaction
def initialize(worker_class)
2017-10-19 05:24:15 -04:00
super()
@worker_class = worker_class
end
def labels
2017-10-19 05:24:15 -04:00
{ controller: @worker_class.name, action: 'perform' }
end
end
end
end