Skip to content

Profile parameter config#553

Merged
nateberkopec merged 3 commits intoMiniProfiler:masterfrom
gmcgibbon:profile_parameter_config
Apr 11, 2023
Merged

Profile parameter config#553
nateberkopec merged 3 commits intoMiniProfiler:masterfrom
gmcgibbon:profile_parameter_config

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 force-pushed the profile_parameter_config branch from f445871 to bcf29af Compare April 7, 2023 06:09
@nateberkopec nateberkopec force-pushed the profile_parameter_config branch from bcf29af to 7f6e09b Compare April 7, 2023 06:16
@nateberkopec nateberkopec force-pushed the profile_parameter_config branch from a3cba9b to 835243d Compare April 7, 2023 06:23
@nateberkopec nateberkopec merged commit de9eb1c into MiniProfiler:master Apr 11, 2023
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.

2 participants