MiniProfiler / rack-mini-profiler

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

Profile parameter config #553

Closed gmcgibbon closed 1 year ago

gmcgibbon commented 1 year ago

Allow profile query parameter to be configured using Rack::MiniProfiler.profile_parameter. Sometimes, an application may want to use a configurable profiler parameter to obscure or customize how profiles are collected. This is especially true for production environments.

I also formatted the config option table to make it easier to read without markdown parsing, but I can revert that if need be. It really only helps if you have a 120+ character screen width.

nateberkopec commented 1 year ago

It does make the code a tad harder to read but I definitely think this should be configurable, so LGTM. Rebase to show you're green on CI and let's 🚢