Module: Datadog::Tracing::Contrib::ActionView::Events

Defined in:
lib/datadog/tracing/contrib/action_view/events.rb,
lib/datadog/tracing/contrib/action_view/events/render_partial.rb,
lib/datadog/tracing/contrib/action_view/events/render_template.rb

Overview

Defines collection of instrumented ActionView events

Defined Under Namespace

Modules: RenderPartial, RenderTemplate

Constant Summary collapse

ALL =
[
  Events::RenderPartial,
  Events::RenderTemplate
].freeze

Class Method Summary collapse

Class Method Details

.allObject



19
20
21
# File 'lib/datadog/tracing/contrib/action_view/events.rb', line 19

def all
  self::ALL
end

.subscribe!Object



27
28
29
# File 'lib/datadog/tracing/contrib/action_view/events.rb', line 27

def subscribe!
  all.each(&:subscribe!)
end

.subscriptionsObject



23
24
25
# File 'lib/datadog/tracing/contrib/action_view/events.rb', line 23

def subscriptions
  all.collect(&:subscriptions).collect(&:to_a).flatten
end