Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile parameter config #553

Merged
merged 3 commits into from Apr 11, 2023

Conversation

gmcgibbon
Copy link
Contributor

@gmcgibbon gmcgibbon commented Feb 8, 2023

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
Copy link
Collaborator

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 🚢

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.
@nateberkopec nateberkopec merged commit de9eb1c into MiniProfiler:master Apr 11, 2023
5 checks passed
ohbarye added a commit to ohbarye/rack-mini-profiler that referenced this pull request Jun 11, 2023
Profile parameter got config-able with MiniProfiler#553, but framegraph ability has been still depending on `pp`. It should be use `@config.profile_parameter`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants