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
60d6eb18
Commit
60d6eb18
authored
Aug 05, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
c1a5e5d8
e9918b1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
changelogs/unreleased/sh-disable-redis-peek.yml
changelogs/unreleased/sh-disable-redis-peek.yml
+5
-0
lib/peek/views/redis_detailed.rb
lib/peek/views/redis_detailed.rb
+5
-0
No files found.
changelogs/unreleased/sh-disable-redis-peek.yml
0 → 100644
View file @
60d6eb18
---
title
:
Only track Redis calls if Peek is enabled
merge_request
:
31438
author
:
type
:
performance
lib/peek/views/redis_detailed.rb
View file @
60d6eb18
...
...
@@ -16,6 +16,7 @@ module Gitlab
private
def
add_call_details
(
duration
,
args
)
return
unless
peek_enabled?
# redis-rb passes an array (e.g. [:get, key])
return
unless
args
.
length
==
1
...
...
@@ -26,6 +27,10 @@ module Gitlab
}
end
def
peek_enabled?
Gitlab
::
SafeRequestStore
.
store
[
:peek_enabled
]
end
def
detail_store
::
Gitlab
::
SafeRequestStore
[
'redis_call_details'
]
||=
[]
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