2018-12-23 12:14:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
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
|