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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
b55936bf
Commit
b55936bf
authored
Mar 12, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't instrument `app/services/concerns`
parent
92f82773
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
config/initializers/8_metrics.rb
config/initializers/8_metrics.rb
+11
-7
No files found.
config/initializers/8_metrics.rb
View file @
b55936bf
...
...
@@ -20,13 +20,17 @@ def instrument_classes(instrumentation)
# Path to search => prefix to strip from constant
paths_to_instrument
=
{
%w(app finders)
=>
%w(app finders)
,
%w(app mailers emails)
=>
%w(app mailers)
,
%w(app services **)
=>
%w(app services)
,
%w(lib gitlab conflicts)
=>
[
'lib'
],
%w(lib gitlab diff)
=>
[
'lib'
],
%w(lib gitlab email message)
=>
[
'lib'
],
%w(lib gitlab checks)
=>
[
'lib'
]
%w(app finders)
=>
%w(app finders)
,
%w(app mailers emails)
=>
%w(app mailers)
,
# Don't instrument `app/services/concerns`
# It contains modules that are included in the services.
# The services themselves are instrumented so the methods from the modules
# are included.
%w(app services [^concerns]**)
=>
%w(app services)
,
%w(lib gitlab conflicts)
=>
[
'lib'
],
%w(lib gitlab diff)
=>
[
'lib'
],
%w(lib gitlab email message)
=>
[
'lib'
],
%w(lib gitlab checks)
=>
[
'lib'
]
}
paths_to_instrument
.
each
do
|
(
path
,
prefix
)
|
...
...
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