diff options
author | Sean McGivern <sean@gitlab.com> | 2017-07-14 10:19:20 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-07-14 10:46:49 +0100 |
commit | a5b8d4bceaeef1ea49695e3bf25b2037f705d252 (patch) | |
tree | 6247a0cfd643d977d4885eff139cde46b1ae12b7 | |
parent | 1afdbe320e60aa227dfd75ae1f1f128106660c8a (diff) | |
download | gitlab-ce-instrument-ability.tar.gz |
Instrument Abilityinstrument-ability
-rw-r--r-- | config/initializers/8_metrics.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/8_metrics.rb b/config/initializers/8_metrics.rb index 5e34aac6527..c80d28746d6 100644 --- a/config/initializers/8_metrics.rb +++ b/config/initializers/8_metrics.rb @@ -174,6 +174,10 @@ if Gitlab::Metrics.enabled? loc && loc[0].start_with?(models) && method.source =~ regex end end + + # Ability is in app/models, is not an ActiveRecord model, but should still + # be instrumented. + Gitlab::Metrics::Instrumentation.instrument_methods(Ability) end Gitlab::Metrics::Instrumentation.configure do |config| |