BigW Consortium Gitlab

background_transaction.rb 283 Bytes
Newer Older
1 2
module Gitlab
  module Metrics
3
    class BackgroundTransaction < Transaction
4
      def initialize(worker_class)
5
        super()
6 7 8 9
        @worker_class = worker_class
      end

      def labels
10
        { controller: @worker_class.name, action: 'perform' }
11 12 13 14
      end
    end
  end
end