Instrument all Gitlab::Git instance methods
This commit is contained in:
parent
48eb2cd664
commit
1256dabb44
1 changed files with 4 additions and 2 deletions
|
@ -49,12 +49,14 @@ if Gitlab::Metrics.enabled?
|
|||
config.instrument_instance_methods(Gitlab::Shell)
|
||||
|
||||
config.instrument_methods(Gitlab::Git)
|
||||
config.instrument_instance_methods(Gitlab::Git::Repository)
|
||||
|
||||
Gitlab::Git.constants.each do |name|
|
||||
const = Gitlab::Git.const_get(name)
|
||||
|
||||
config.instrument_methods(const) if const.is_a?(Module)
|
||||
next unless const.is_a?(Module)
|
||||
|
||||
config.instrument_methods(const)
|
||||
config.instrument_instance_methods(const)
|
||||
end
|
||||
|
||||
Dir[Rails.root.join('app', 'finders', '*.rb')].each do |path|
|
||||
|
|
Loading…
Reference in a new issue