module BaselineRedRpm::Instruments::Sinatra::Base
Public Instance Methods
dispatch_with_trace()
click to toggle source
# File lib/baseline_red_rpm/instruments/sinatra.rb, line 7 def dispatch_with_trace if ::BaselineRedRpm::Tracer.tracing? operation = "#{self.class}##{env["PATH_INFO"]}" span = ::BaselineRedRpm.tracer.start_span(operation, tags: { component: "Sinatra" }) BaselineRedRpm::Utils.log_source_and_backtrace(span, :sinatra) end dispatch_without_trace rescue Exception => e if span span.set_tag('error', true) span.log_error(e) end raise ensure span.finish if span end
handle_exception_with_trace(boom)
click to toggle source
# File lib/baseline_red_rpm/instruments/sinatra.rb, line 27 def handle_exception_with_trace(boom) handle_exception_without_trace(boom) end