Class: Gitlab::Cluster::RackTimeoutObserver
- Inherits:
-
Object
- Object
- Gitlab::Cluster::RackTimeoutObserver
- Includes:
- ActionView::Helpers::SanitizeHelper
- Defined in:
- lib/gitlab/cluster/rack_timeout_observer.rb
Constant Summary collapse
- TRANSITION_STATES =
%i[ready active].freeze
Instance Method Summary collapse
-
#callback ⇒ Object
returns the Proc to be used as the observer callback block.
-
#initialize ⇒ RackTimeoutObserver
constructor
A new instance of RackTimeoutObserver.
Constructor Details
#initialize ⇒ RackTimeoutObserver
Returns a new instance of RackTimeoutObserver.
9 10 11 |
# File 'lib/gitlab/cluster/rack_timeout_observer.rb', line 9 def initialize @counter = Gitlab::Metrics.counter(:rack_requests_total, 'Number of requests in a given rack state') end |
Instance Method Details
#callback ⇒ Object
returns the Proc to be used as the observer callback block
14 15 16 |
# File 'lib/gitlab/cluster/rack_timeout_observer.rb', line 14 def callback method(:log_timeout_exception) end |