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