Instrument Ability
This commit is contained in:
parent
1afdbe320e
commit
a5b8d4bcea
1 changed files with 4 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue