Instrument all ActiveRecord model methods
This works by searching the raw source code for any references to commonly used ActiveRecord methods. While not bulletproof it saves us from having to list hundreds of methods by hand. It also ensures that (most) newly added methods are instrumented automatically. This _only_ instruments models defined in app/models, should a model reside somewhere else (e.g. somewhere in lib/) it _won't_ be instrumented.
Showing
... | @@ -210,6 +210,7 @@ gem 'net-ssh', '~> 3.0.1' | ... | @@ -210,6 +210,7 @@ gem 'net-ssh', '~> 3.0.1' |
# Metrics | # Metrics | ||
group :metrics do | group :metrics do | ||
gem 'method_source', '~> 0.8', require: false | |||
gem 'influxdb', '~> 0.2', require: false | gem 'influxdb', '~> 0.2', require: false | ||
gem 'connection_pool', '~> 2.0', require: false | gem 'connection_pool', '~> 2.0', require: false | ||
end | end | ||
... | ... |
Please register or sign in to comment