BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6dcfc400
Commit
6dcfc400
authored
Feb 02, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't require lib/gitlab/request_profiler/middleware.rb in config/initializers/request_profiler.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
ee59a64b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
20452-remove-require-from-request_profiler-initializer.yml
...0452-remove-require-from-request_profiler-initializer.yml
+4
-0
request_profiler.rb
config/initializers/request_profiler.rb
+0
-2
middleware.rb
lib/gitlab/request_profiler/middleware.rb
+1
-2
No files found.
changelogs/unreleased/20452-remove-require-from-request_profiler-initializer.yml
0 → 100644
View file @
6dcfc400
---
title
:
Don't require lib/gitlab/request_profiler/middleware.rb in config/initializers/request_profiler.rb
merge_request
:
author
:
config/initializers/request_profiler.rb
View file @
6dcfc400
require
'gitlab/request_profiler/middleware'
Rails
.
application
.
configure
do
|
config
|
config
.
middleware
.
use
(
Gitlab
::
RequestProfiler
::
Middleware
)
end
lib/gitlab/request_profiler/middleware.rb
View file @
6dcfc400
require
'ruby-prof'
require_dependency
'gitlab/request_profiler'
module
Gitlab
module
RequestProfiler
...
...
@@ -20,7 +19,7 @@ module Gitlab
header_token
=
env
[
'HTTP_X_PROFILE_TOKEN'
]
return
unless
header_token
.
present?
profile_token
=
RequestProfiler
.
profile_token
profile_token
=
Gitlab
::
RequestProfiler
.
profile_token
return
unless
profile_token
.
present?
header_token
==
profile_token
...
...
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