class ActionDispatch::MiddlewareStack::Middleware
Public Instance Methods
build_with_new_relic(app)
click to toggle source
# File lib/new_relic/agent/instrumentation/rails_middleware.rb, line 22 def build_with_new_relic(app) # MiddlewareProxy.wrap guards against double-wrapping here. # We need to instrument the innermost app (usually a RouteSet), # which will never itself be the return value from #build, but will # instead be the initial value of the app argument. wrapped_app = ::NewRelic::Agent::Instrumentation::MiddlewareProxy.wrap(app) result = build_without_new_relic(wrapped_app) ::NewRelic::Agent::Instrumentation::MiddlewareProxy.wrap(result) end
Also aliased as: build