Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d9a4ef1c
Commit
d9a4ef1c
authored
Jul 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
2e25587d
80bb04eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
config/initializers/peek.rb
config/initializers/peek.rb
+3
-0
lib/gitlab/performance_bar/redis_adapter_when_peek_enabled.rb
...gitlab/performance_bar/redis_adapter_when_peek_enabled.rb
+12
-0
No files found.
config/initializers/peek.rb
View file @
d9a4ef1c
...
...
@@ -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
lib/gitlab/performance_bar/redis_adapter_when_peek_enabled.rb
0 → 100644
View file @
d9a4ef1c
# frozen_string_literal: true
# Adapted from https://github.com/peek/peek/blob/master/lib/peek/adapters/redis.rb
module
Gitlab
module
PerformanceBar
module
RedisAdapterWhenPeekEnabled
def
save
super
unless
::
Peek
.
request_id
.
blank?
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment