diff options
-rw-r--r-- | config/initializers/8_metrics.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/8_metrics.rb b/config/initializers/8_metrics.rb index 25630b298ce..e088858fec0 100644 --- a/config/initializers/8_metrics.rb +++ b/config/initializers/8_metrics.rb @@ -178,6 +178,7 @@ if Gitlab::Metrics.enabled? # Ability is in app/models, is not an ActiveRecord model, but should still # be instrumented. Gitlab::Metrics::Instrumentation.instrument_methods(Ability) + Gitlab::Metrics::Instrumentation.instrument_class_hierarchy(DeclarativePolicy::Base) end Gitlab::Metrics::Instrumentation.configure do |config| |