debian-mirror-gitlab/lib/gitlab/metrics/background_transaction.rb
2018-03-17 18:26:18 +05:30

14 lines
283 B
Ruby

module Gitlab
module Metrics
class BackgroundTransaction < Transaction
def initialize(worker_class)
super()
@worker_class = worker_class
end
def labels
{ controller: @worker_class.name, action: 'perform' }
end
end
end
end