diff options
author | Rémy Coutable <remy@rymai.me> | 2019-07-03 16:02:03 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-07-03 16:02:42 +0200 |
commit | eaf58debac14474dc7ad5e5a6a6fc88da0af1370 (patch) | |
tree | 59994faed770c982850822d38131bed11fc6e7b6 /config | |
parent | 96efba34d32bcde33dbd21e9ef0f181330ddbe96 (diff) | |
download | gitlab-ce-eaf58debac14474dc7ad5e5a6a6fc88da0af1370.tar.gz |
Only save Peek session in Redis when Peek is enabled
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/peek.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/peek.rb b/config/initializers/peek.rb index cb108416b10..d492b60705d 100644 --- a/config/initializers/peek.rb +++ b/config/initializers/peek.rb @@ -42,3 +42,6 @@ class PEEK_DB_CLIENT end PEEK_DB_VIEW.prepend ::Gitlab::PerformanceBar::PeekQueryTracker + +require 'peek/adapters/redis' +Peek::Adapters::Redis.prepend ::Gitlab::PerformanceBar::RedisAdapterWhenPeekEnabled |