MiniProfiler / rack-mini-profiler

Profiler for your development and production Ruby rack apps.
MIT License
3.68k stars 400 forks source link

SQL queries are not profiled for Non-Rails Applications if rails patch is not enabled #614

Open suryanarayanan035 opened 1 month ago

suryanarayanan035 commented 1 month ago

Hello there, I found that the SQL queries are not being filtered if we didn't enable rails patch. I am building a application using Rack Builder and I find no reason enable rails patch. So, I think we can remove the condition which checks for rails patch to enable SQL patches. Let me know If anyone have any concerns, else I will raise a PR for the same.

sql_patches function

suryanarayanan035 commented 3 weeks ago

Hello Guys, can someone please review the PR? This PR helps in enabling SQL profiling in non rails applications without any workarounds.