Sha256: ea718090c2b6692c5ff126239691890cfc24cb8b374261af26ce916cf3e5dc53
Contents?: true
Size: 960 Bytes
Versions: 6
Compression:
Stored size: 960 Bytes
Contents
# Copyright (c) 2016 AppNeta, Inc. # All rights reserved. module TraceView module Inst # # ActionController # # This modules contains the instrumentation code specific # to Rails v5 # module ActionController include ::TraceView::Inst::RailsBase def self.included(base) base.class_eval do alias_method_chain :process_action, :traceview alias_method_chain :render, :traceview end end def process_action_with_traceview(method_name, *args) report_kvs = { :Controller => self.class.name, :Action => self.action_name, } TraceView::API.log_entry('rails', report_kvs) process_action_without_traceview(method_name, *args) rescue Exception => e TraceView::API.log_exception(nil, e) if log_rails_error?(e) raise ensure TraceView::API.log_exit('rails') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems