Class: Gitlab::Instrumentation::Throttle

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/instrumentation/throttle.rb

Constant Summary collapse

KEY =
:instrumentation_throttle_safelist

Class Method Summary collapse

Class Method Details

.safelistObject


8
9
10
# File 'lib/gitlab/instrumentation/throttle.rb', line 8

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

.safelist=(name) ⇒ Object


12
13
14
# File 'lib/gitlab/instrumentation/throttle.rb', line 12

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