Module: Caliper::Rails::AppendInfo
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/caliper/rails/append_info.rb
Instance Method Summary collapse
Instance Method Details
#add_request_info_to_tracer ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/caliper/rails/append_info.rb', line 11 def add_request_info_to_tracer return true unless env['caliper.tracer'] # elegantly fail if something went wrong with middleware and also when errors are handled request.env["caliper.tracer"].reqs = "#{params[:controller]}##{params[:action]}" # check if developer has added customer data if defined? self.add_to_caliper_trace request.env["caliper.tracer"].add_to_trace(self.add_to_caliper_trace) end # TODO: add other parameters for the trace? end |