From 5513a30329ab83c95b67c16c4ed14bc923c57373 Mon Sep 17 00:00:00 2001 From: Kirill Shevchenko Date: Mon, 22 Jul 2019 14:34:19 +0300 Subject: [PATCH] filters priority --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e9ef793..79a8354 100644 --- a/README.md +++ b/README.md @@ -46,31 +46,31 @@ end # Log Example -### Slack Notifications +### Filters -To receive notifications about slow queries into Slack, you need to install [incoming-webhooks](https://reflow-files.slack.com/apps/A0F7XDUAZ-incoming-webhooks) and put link into config file: +To avoid noisy warnings from used gems, and places where fat queries are justified, you can filters SQL by backtrace. +For example, you have installed `activeadmin` and want to skip everything from `app/admin`: ```ruby QueryTrack::Settings.configure do |config| config.duration = 0.5 - config.notifications.slack = 'https://hooks.slack.com/services/T0000000/B0000000/C0000000' + config.filters = ['app/admin'] end ``` -# Incoming Hook Example - -### Filters +### Slack Notifications -To avoid noisy warnings from used gems, and places where fat queries are justified, you can filters SQL by backtrace. -For example, you have installed `activeadmin` and want to skip everything from `app/admin`: +To receive notifications about slow queries into Slack, you need to install [incoming-webhooks](https://reflow-files.slack.com/apps/A0F7XDUAZ-incoming-webhooks) and put link into config file: ```ruby QueryTrack::Settings.configure do |config| config.duration = 0.5 - config.filters = ['app/admin'] + config.notifications.slack = 'https://hooks.slack.com/services/T0000000/B0000000/C0000000' end ``` +# Incoming Hook Example + ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/kirillshevch/query_track.