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
b60bd35f
Commit
b60bd35f
authored
Jul 16, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap EE-only instrumentation in Gitlab.ee block
parent
5462265c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
26 deletions
+28
-26
config/initializers/zz_metrics.rb
config/initializers/zz_metrics.rb
+28
-26
No files found.
config/initializers/zz_metrics.rb
View file @
b60bd35f
...
...
@@ -87,32 +87,34 @@ def instrument_classes(instrumentation)
instrumentation
.
instrument_methods
(
Gitlab
::
Highlight
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Highlight
)
instrumentation
.
instrument_methods
(
Elasticsearch
::
Git
::
Repository
)
instrumentation
.
instrument_instance_methods
(
Elasticsearch
::
Git
::
Repository
)
instrumentation
.
instrument_instance_methods
(
Search
::
GlobalService
)
instrumentation
.
instrument_instance_methods
(
Search
::
ProjectService
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Elastic
::
SearchResults
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Elastic
::
ProjectSearchResults
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Elastic
::
Indexer
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Elastic
::
SnippetSearchResults
)
instrumentation
.
instrument_methods
(
Gitlab
::
Elastic
::
Helper
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
ApplicationSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
IssuesSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
MergeRequestsSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
MilestonesSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
NotesSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
ProjectsSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
RepositoriesSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
SnippetsSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
WikiRepositoriesSearch
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
BitbucketImport
::
Importer
)
instrumentation
.
instrument_instance_methods
(
Bitbucket
::
Connection
)
instrumentation
.
instrument_instance_methods
(
Geo
::
RepositorySyncWorker
)
Gitlab
.
ee
do
instrumentation
.
instrument_methods
(
Elasticsearch
::
Git
::
Repository
)
instrumentation
.
instrument_instance_methods
(
Elasticsearch
::
Git
::
Repository
)
instrumentation
.
instrument_instance_methods
(
Search
::
GlobalService
)
instrumentation
.
instrument_instance_methods
(
Search
::
ProjectService
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Elastic
::
SearchResults
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Elastic
::
ProjectSearchResults
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Elastic
::
Indexer
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
Elastic
::
SnippetSearchResults
)
instrumentation
.
instrument_methods
(
Gitlab
::
Elastic
::
Helper
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
ApplicationSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
IssuesSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
MergeRequestsSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
MilestonesSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
NotesSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
ProjectsSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
RepositoriesSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
SnippetsSearch
)
instrumentation
.
instrument_instance_methods
(
Elastic
::
WikiRepositoriesSearch
)
instrumentation
.
instrument_instance_methods
(
Gitlab
::
BitbucketImport
::
Importer
)
instrumentation
.
instrument_instance_methods
(
Bitbucket
::
Connection
)
instrumentation
.
instrument_instance_methods
(
Geo
::
RepositorySyncWorker
)
end
# This is a Rails scope so we have to instrument it manually.
instrumentation
.
instrument_method
(
Project
,
:visible_to_user
)
...
...
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