module Oboe::Inst::ActionController4

ActionController4

This modules contains the instrumentation code specific to Rails v4

Public Class Methods

included(base) click to toggle source
# File lib/oboe/frameworks/rails/inst/action_controller.rb, line 125
def self.included(base)
  base.class_eval do
    alias_method_chain :process_action, :oboe
    alias_method_chain :render, :oboe
  end
end

Public Instance Methods

process_action_with_oboe(method_name, *args) click to toggle source
# File lib/oboe/frameworks/rails/inst/action_controller.rb, line 132
def process_action_with_oboe(method_name, *args)
  return process_action_without_oboe(method_name, *args) if Oboe::Config[:action_blacklist].present? &&
    Oboe::Config[:action_blacklist][[self.controller_name, self.action_name].join('#')]

  report_kvs = {
    :Controller   => self.class.name,
    :Action       => self.action_name,
  }

  Oboe::API.log_entry('rails')
  process_action_without_oboe(method_name, *args)

rescue Exception => e
  Oboe::API.log_exception(nil, e) if log_rails_error?(e)
  raise
ensure
  Oboe::API.log_exit('rails')
end