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
ee318727
Commit
ee318727
authored
Mar 01, 2017
by
Adam Niedzielski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Execute metrics initializer earlier
This makes sure that Gitlab::Metrics::RackMiddleware is added before Gitlab::EtagCaching::Middleware.
parent
c661df35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
8_metrics.rb
config/initializers/8_metrics.rb
+0
-0
instrumentation.md
doc/development/instrumentation.md
+1
-1
8_metrics_spec.rb
spec/initializers/8_metrics_spec.rb
+1
-1
No files found.
config/initializers/metrics.rb
→
config/initializers/
8_
metrics.rb
View file @
ee318727
File moved
doc/development/instrumentation.md
View file @
ee318727
...
...
@@ -35,7 +35,7 @@ Using this method is in general preferred over directly calling the various
instrumentation methods.
Method instrumentation should be added in the initializer
`config/initializers/metrics.rb`
.
`config/initializers/
8_
metrics.rb`
.
### Examples
...
...
spec/initializers/metrics_spec.rb
→
spec/initializers/
8_
metrics_spec.rb
View file @
ee318727
require
'spec_helper'
require_relative
'../../config/initializers/metrics'
require_relative
'../../config/initializers/
8_
metrics'
describe
'instrument_classes'
,
lib:
true
do
let
(
:config
)
{
double
(
:config
)
}
...
...
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