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

throttle.rb « instrumentation « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b7e990fb2e713e8de052dba990a7de4a2b50087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Gitlab
  module Instrumentation
    class Throttle
      KEY = :instrumentation_throttle_safelist

      def self.safelist
        Gitlab::SafeRequestStore[KEY]
      end

      def self.safelist=(name)
        Gitlab::SafeRequestStore[KEY] = name
      end
    end
  end
end