Sha256: 0c5ba3211f90ca9fa5187f133bb203c43cad951c872e121ff4c482dc29da4938
Contents?: true
Size: 869 Bytes
Versions: 7
Compression:
Stored size: 869 Bytes
Contents
# encoding: utf-8 require 'ting_yun/instrumentation/support/action_cable_subscriber' TingYun::Support::LibraryDetection.defer do named :rails5_action_cable depends_on do !::TingYun::Agent.config[:disable_action_cable] end depends_on do defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i == 5 && defined?(::ActionCable) end depends_on do !TingYun::Agent.config[:disable_action_cable_instrumentation] end executes do ::TingYun::Agent.logger.info 'Installing Rails 5 Action Cable instrumentation' end executes do # enumerate the specific events we want so that we do not get unexpected additions in the future ActiveSupport::Notifications.subscribe(/(perform_action|transmit)\.action_cable/, TingYun::Instrumentation::Rails::ActionCableSubscriber.new) end end
Version data entries
7 entries across 7 versions & 1 rubygems