Module: Callstacking::Rails::Helpers::InstrumentHelper
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/callstacking/rails/helpers/instrument_helper.rb
Instance Method Summary collapse
Instance Method Details
#callstacking_setup ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/callstacking/rails/helpers/instrument_helper.rb', line 6 def callstacking_setup exception = nil @last_callstacking_sample = Time.now.utc Callstacking::Rails::Engine.start_tracing(self) yield rescue Exception => e @last_callstacking_exception = Time.now.utc exception = e raise e ensure Callstacking::Rails::Engine.stop_tracing(self, exception) end |