debian-mirror-gitlab/lib/gitlab/metrics/background_transaction.rb

15 lines
283 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
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