Questions people ask.

Short answers, checked against the gem's documentation. Anything not listed here is not something we can verify, so it is left out.

FAQ

Is it safe to leave enabled?

It is built for development and test, and that is where it is on by default. It shows everything your application does (parameters, SQL, headers, logs, ENV) and can change ENV and run your tests, so its defaults keep that to you: only requests from your own machine get in, and sensitive values are masked with your filter_parameters before a profile is stored. Leaving it on in development is the intended use.

What happens in production?

Nothing: the profiler is disabled outside development and test unless you enable it. Disabled, it inserts no middleware and installs no Sidekiq, ActiveJob, test or console instrumentation, and its dashboard, API and cluster routes answer 403 or 404. ENV overrides saved from the dashboard or MCP are never applied in production, with no option to change that.

The gem is still loaded by Bundler in every environment its Gemfile group allows, so a mistake in its configuration must not stop your app from booting, and it is written not to.

Does the dashboard need its own authentication?

The gem has no login of its own. Access is decided by authorization_mode: :allow_local (the default) lets in requests made from the machine itself, :allow_authorized lets in the requests for which your authorize_with block returns true, and :allow_all lets in everybody who can reach the application, with no protection at all.

If you mount the engine outside development, or switch to :allow_all, protecting it is your responsibility. Note that :allow_local trusts the machine, not the person: a relay that adds no forwarding header, such as ssh -R, still counts as local.

Which Ruby and Rails versions are supported?

Ruby 3.0 or later and Rails 7.0 or later. The gem's CI runs its test suite on Ruby 3.3 and 3.4. Ruby 3.3 was not part of the overhead measurements the gem documents (Ruby 3.4.6).

Does it work with Sidekiq and plain ActiveJob?

Yes, both. With config.track_jobs = true (the default), every ActiveJob job and every Sidekiq job is profiled on its own, with its SQL, cache, outbound HTTP, logs, exceptions, queue, masked arguments and status. They are listed under Background Jobs in the dashboard, and a page that enqueued jobs lists them in its Jobs tab. The instrumentation is installed at boot, only when the profiler is enabled.

Why do I see no toolbar in Docker or behind a proxy?

Your browser's requests then reach Rails from a bridge or proxy address, which :allow_local refuses, so the profiler stops capturing them. It logs why, once. Admit your own network explicitly with :allow_authorized and an authorize_with block that checks REMOTE_ADDR, as the gem's security documentation shows.

What does the Chrome extension need that the dashboard alone does not?

The dashboard needs only the gem and a browser. The extension adds a DevTools panel, and an in-page bar for front ends and single page apps where Rails renders no toolbar. It needs more: a Chromium based browser with Manifest V3 (Chrome 102 or later, Edge or Brave), the profiler URL set in its settings, and your acceptance of the browser prompt granting it access to that origin. For the bar on a separate front end, the front end's origin must be listed in its settings too.

It installs from the Chrome Web Store, no build step needed.

Where do I report a bug?

Bug reports and merge requests are welcome on the gem's GitLab repository, where development happens, at git.duplessy.eu/sebastien/rails-profiler-gem. The GitHub repository is a mirror of it. Both are listed on the changelog and repositories page.