class ActionDispatch::MiddlewareStack::Middleware

Public Instance Methods

build(app)
Also aliased as: build_without_ting_yun
Alias for: build_with_ting_yun
build_with_ting_yun(app) click to toggle source
# File lib/ting_yun/instrumentation/rails_middleware.rb, line 22
def build_with_ting_yun(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 = ::TingYun::Instrumentation::MiddlewareProxy.wrap(app)
  result = build_without_ting_yun(wrapped_app)
  ::TingYun::Instrumentation::MiddlewareProxy.wrap(result)
end
Also aliased as: build
build_without_ting_yun(app)
Alias for: build