Commit Graph

3 Commits

Author SHA1 Message Date
Cody Cutrer ce19a6ff7b record migration name in marginalia comment
test plan:
 * add migration to your marginalia.yml (or copy over the example
   yml)
 * run a migration
 * check your logs - ensure the migration name is in the
   marginalia comment

Change-Id: I3a9f5163951a40904f1f4fe0d1c5c359dbabb25d
Reviewed-on: https://gerrit.instructure.com/50042
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2016-03-09 04:00:47 +00:00
Cody Cutrer b76c15bb30 add rake task to marginalia comment
test plan:
 * add rake_task to your marginalia.yml
 * run a rake task (like db:migrate)
 * confirm in your log that sql queries are tagged with the task
   name

Change-Id: I2e7549da3216e46904bac482540e5442dfe24018
Reviewed-on: https://gerrit.instructure.com/50047
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
2016-02-23 22:22:39 +00:00
Brian Palmer 08714d9a69 include information about current request in SQL queries
This will help immensely when debugging slow or misbehaving queries.
Thanks to 37signals: https://github.com/37signals/marginalia

closes CNVS-5108

test plan:

cp config/marginalia.yml.example config/marginalia.yml
then edit config/marginalia.yml to uncomment the production block and
change "production" to "development".

run Canvas, and see in your log file how SQL statements have some extra,
useful information in a comment at the end. Run delayed jobs, and you'll
also see useful info on SQL statements in the log -- including job tag,
and context_id in this case will be job id.

Change-Id: I7988a9afaf674bd00c3edc6adafccaf51e7ff60f
Reviewed-on: https://gerrit.instructure.com/16008
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: Clare Hetherington <clare@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
2013-04-15 15:43:05 +00:00