Skip to content

Convert Query Analyzer feature flags to type: ops

What does this MR do and why?

These feature flags control "Query Analyzers". Query analyzers are middleware that parse every SQL query sent to the database in Rails and try to analyze and detect problems with the queries. These were needed as part of CI decomposition to detect queries going to the wrong database (ie. using the wrong model or connection).

These feature flags need to be set to 0.01% permanently (or at least never set to 100%) as they sample how frequently we parse queries in production to detect problems. Parsing queries uses more CPU so we only sample a subset of queries.

You can read more about these query analyzers in the merge requests that introduced them:

  1. !74177 (merged)
  2. !73839 (merged)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #368734 (closed)

Edited by Kamil Trzciński

Merge request reports