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.
10 11 12 |
# File 'lib/gitlab/cluster/rack_timeout_observer.rb', line 10 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
15 16 17 |
# File 'lib/gitlab/cluster/rack_timeout_observer.rb', line 15 def callback method(:log_timeout_exception) end |