summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-08-02 13:29:43 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-08-02 13:30:13 +0200
commit946d3b132e6f8e95b7d8b95e32fd8231b835137d (patch)
tree57b8121c5eab387afb45fb4ee6eafa21152318fc /config/initializers
parenta8851a3c9f54bda636b9bd584db54d38c9290075 (diff)
downloadgitlab-ce-946d3b132e6f8e95b7d8b95e32fd8231b835137d.tar.gz
Instrument the Repository classinstrument-repository-class
Since this isn't an ActiveRecord::Base descendant it wasn't instrumented.
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/metrics.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/metrics.rb b/config/initializers/metrics.rb
index f3cddac5b36..b68a09ce730 100644
--- a/config/initializers/metrics.rb
+++ b/config/initializers/metrics.rb
@@ -144,6 +144,7 @@ if Gitlab::Metrics.enabled?
end
config.instrument_methods(Rinku)
+ config.instrument_instance_methods(Repository)
end
GC::Profiler.enable