module Oboe::Inst::ActionController3

ActionController3

This modules contains the instrumentation code specific to Rails v3

Public Class Methods

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

Public Instance Methods

process_action_with_oboe(*args) click to toggle source
# File lib/oboe/frameworks/rails/inst/action_controller.rb, line 101
def process_action_with_oboe(*args)
  report_kvs = {
    :Controller   => self.class.name,
    :Action       => self.action_name,
  }
  Oboe::API.log(nil, 'info', report_kvs)

  process_action_without_oboe *args
rescue Exception
  report_kvs[:Status] = 500
  Oboe::API.log(nil, 'info', report_kvs)
  raise
end
process_with_oboe(*args) click to toggle source
# File lib/oboe/frameworks/rails/inst/action_controller.rb, line 90
def process_with_oboe(*args)
  Oboe::API.log_entry('rails')
  process_without_oboe *args

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