Sha256: 5b6cc8398a043b26f818ae6ec87d29223f2f785b9cab7c40c957f7fa0da5d854

Contents?: true

Size: 750 Bytes

Versions: 29

Compression:

Stored size: 750 Bytes

Contents

require 'ddtrace/contrib/action_cable/event'
require 'ddtrace/contrib/action_cable/events/broadcast'
require 'ddtrace/contrib/action_cable/events/perform_action'
require 'ddtrace/contrib/action_cable/events/transmit'

module Datadog
  module Contrib
    module ActionCable
      # Defines collection of instrumented ActionCable events
      module Events
        ALL = [
          Events::Broadcast,
          Events::PerformAction,
          Events::Transmit
        ].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

29 entries across 29 versions & 2 rubygems

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