Sha256: 86c2226655e7c1ceffb7645e5a38c16e5a620fb98bd3435014c1a5fbf8f982bb
Contents?: true
Size: 680 Bytes
Versions: 13
Compression:
Stored size: 680 Bytes
Contents
# encoding: utf-8 require 'one_apm/inst/rails4/action_controller_subscriber' LibraryDetection.defer do @name = :rails4_controller depends_on do defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i >= 4 end depends_on do defined?(ActionController) && defined?(ActionController::Base) end executes do OneApm::Manager.logger.info "Installing Rails #{::Rails::VERSION::MAJOR} Controller instrumentation" end executes do class ActionController::Base include OneApm::Agent::Instrumentation::TransactionBase end OneApm::Agent::Instrumentation::ActionControllerSubscriber \ .subscribe(/^process_action.action_controller$/) end end
Version data entries
13 entries across 13 versions & 1 rubygems