Welcome to mirror list, hosted at ThFree Co, Russian Federation.

background_transaction.rb « metrics « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d01de5eef0ae3dfd1c1583490b5e88583897046e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Gitlab
  module Metrics
    class BackgroundTransaction < Transaction
      def initialize(worker_class)
        super()
        @worker_class = worker_class
      end

      protected

      def labels
        { controller: @worker_class.name, action: 'perform' }
      end
    end
  end
end