# File lib/new_relic/agent/instrumentation/rack.rb, line 25 def call_with_newrelic(*args) @newrelic_request = ::Rack::Request.new(args.first) perform_action_with_newrelic_trace(:category => :middleware, :request => @newrelic_request) do result = call_without_newrelic(*args) # Ignore cascaded calls Transaction.abort_transaction! if result.first == 404 result end end