Skip to content

Ingest sampled logs for some percentage of gitlab rails sql queries

In Log duration and context from a random sample o... (gitlab-org/gitlab#495802) I'm hoping to log every sql query that the gitlab rails app performs at some low sampling rate so that I can determine the relative frequency that different code paths call the same queries.

  • Is this feasible at all for our logging infrastructure?

  • What sort of sampling rate could the logging infrastructure support?