Module: NewRelic::Agent::PrependSupportability

Defined in:
lib/new_relic/agent/prepend_supportability.rb

Class Method Summary collapse

Class Method Details

.record_metrics_for(*classes) ⇒ Object



8
9
10
11
12
13
# File 'lib/new_relic/agent/prepend_supportability.rb', line 8

def self.record_metrics_for(*classes)
  classes.each do |klass|
    count = klass.send(:ancestors).index(klass)
    ::NewRelic::Agent.record_metric("Supportability/PrependedModules/#{klass}", count) if count > 0
  end
end