Sha256: e6507b8f37f0fe01342320626f374fc20a3e76d6c6ee3c25df823e77afb39770
Contents?: true
Size: 1.24 KB
Versions: 6
Compression:
Stored size: 1.24 KB
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 process_action(method_name, *args) kvs = { :Controller => self.class.name, :Action => self.action_name, } kvs[:Backtrace] = TraceView::API.backtrace if TraceView::Config[:action_controller][:collect_backtraces] TraceView::API.log_entry('rails', kvs) super(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 # # render_with_traceview # # Our render wrapper that just times and conditionally # reports raised exceptions # def render(*args, &blk) TraceView::API.log_entry('actionview') super(*args, &blk) rescue Exception => e TraceView::API.log_exception(nil, e) if log_rails_error?(e) raise ensure TraceView::API.log_exit('actionview') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems