Class: Gitlab::Metrics::Subscribers::ActionView

Inherits:
ActiveSupport::Subscriber
  • Object
show all
Defined in:
lib/gitlab/metrics/subscribers/action_view.rb

Overview

Class for tracking the rendering timings of views.

Constant Summary collapse

SERIES =
'views'

Instance Method Summary collapse

Instance Method Details

#render_template(event) ⇒ Object Also known as: render_view


10
11
12
# File 'lib/gitlab/metrics/subscribers/action_view.rb', line 10

def render_template(event)
  track(event) if current_transaction
end