class ActionDispatch::MiddlewareStack::Middleware

Public Instance Methods

build(app)
Also aliased as: build_without_mmtrix
Alias for: build_with_mmtrix
build_with_mmtrix(app) click to toggle source
# File lib/mmtrix/agent/instrumentation/rails_middleware.rb, line 23
def build_with_mmtrix(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 = ::Mmtrix::Agent::Instrumentation::MiddlewareProxy.wrap(app)
  result = build_without_mmtrix(wrapped_app)
  ::Mmtrix::Agent::Instrumentation::MiddlewareProxy.wrap(result)
end
Also aliased as: build
build_without_mmtrix(app)
Alias for: build