Slow action in Rails application: ActionDispatch::Routing::RouteSet#call

前端 未结 2 540
不知归路
不知归路 2021-02-10 23:31

According to NewRelic the slowest transaction in my application is:

Middleware/Rack/ActionDispatch::Routing::RouteSet#call

It takes

相关标签:
2条回答
  • 2021-02-10 23:38

    If by any chance you are using the "Treat" gem, remove it. Seems like a bug.

    https://github.com/louismullie/treat/issues/84

    0 讨论(0)
  • In my case, I was using rocket_pants. Its controllers don't inherit from ActionController::Base so it was showing up in newrelic as middleware. https://discuss.newrelic.com/t/middleware-call-shown-as-web-transaction/25861/8

    0 讨论(0)
提交回复
热议问题