Module: HasMetrics
- Defined in:
- lib/has_metrics.rb,
lib/has_metrics/version.rb
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/has_metrics.rb', line 7 def self.included(base) base.send :include, Metrics base.send :include, Segmentation if defined?(::NewRelic) base.send :include, ::NewRelic::Agent::Instrumentation::ControllerInstrumentation base.class_eval do class << self include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation add_transaction_tracer :update_all_metrics!, category: :task end end end end |