Commit 1256dabb authored by Yorick Peterse's avatar Yorick Peterse

Instrument all Gitlab::Git instance methods

parent 48eb2cd6
...@@ -49,12 +49,14 @@ if Gitlab::Metrics.enabled? ...@@ -49,12 +49,14 @@ if Gitlab::Metrics.enabled?
config.instrument_instance_methods(Gitlab::Shell) config.instrument_instance_methods(Gitlab::Shell)
config.instrument_methods(Gitlab::Git) config.instrument_methods(Gitlab::Git)
config.instrument_instance_methods(Gitlab::Git::Repository)
Gitlab::Git.constants.each do |name| Gitlab::Git.constants.each do |name|
const = Gitlab::Git.const_get(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 end
Dir[Rails.root.join('app', 'finders', '*.rb')].each do |path| Dir[Rails.root.join('app', 'finders', '*.rb')].each do |path|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment