class ActionDispatch::MiddlewareStack::Middleware

Public Instance Methods

build(app)
Also aliased as: build_without_one_apm
Alias for: build_with_one_apm
build_with_one_apm(app) click to toggle source
# File lib/one_apm/inst/rails_middleware.rb, line 23
def build_with_one_apm(app)
  # MiddlewareWrapper.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 = ::OneApm::Rack::MiddlewareWrapper.wrap(app)
  result = build_without_one_apm(wrapped_app)
  ::OneApm::Rack::MiddlewareWrapper.wrap(result)
end
Also aliased as: build
build_without_one_apm(app)
Alias for: build