Sha256: 29c92c1c0e33477a6d096dddfdff9cedfd584215d965a23d0449b7c47e8f8209

Contents?: true

Size: 629 Bytes

Versions: 31

Compression:

Stored size: 629 Bytes

Contents

require 'ddtrace/contrib/action_view/events/render_partial'
require 'ddtrace/contrib/action_view/events/render_template'

module Datadog
  module Contrib
    module ActionView
      # Defines collection of instrumented ActionView events
      module Events
        ALL = [
          Events::RenderPartial,
          Events::RenderTemplate
        ].freeze

        module_function

        def all
          self::ALL
        end

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

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

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.51.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.50.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.49.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.48.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.47.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.46.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.45.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.44.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.43.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.42.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.41.0 lib/ddtrace/contrib/action_view/events.rb
ls-trace-0.2.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.40.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.39.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.38.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.37.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.36.0 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.35.2 lib/ddtrace/contrib/action_view/events.rb
ddtrace-0.35.1 lib/ddtrace/contrib/action_view/events.rb