diff --git a/Gemfile.lock b/Gemfile.lock index 25bc151..39d292d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -90,7 +90,7 @@ GEM rake multi_json (1.11.2) netrc (0.10.3) - newrelic_rpm (3.15.0.314) + newrelic_rpm (3.16.0.318) nokogiri (1.6.8) mini_portile2 (~> 2.1.0) pkg-config (~> 1.1.7) diff --git a/presenters/thread_utils.rb b/presenters/thread_utils.rb index c88ef2f..d4cb01e 100644 --- a/presenters/thread_utils.rb +++ b/presenters/thread_utils.rb @@ -1,3 +1,5 @@ +require 'new_relic/agent/method_tracer' + module ThreadUtils def self.get_endorsed(threads) @@ -39,9 +41,10 @@ module ThreadUtils read_states end - extend self + class << self include ::NewRelic::Agent::MethodTracer add_method_tracer :get_read_states add_method_tracer :get_endorsed + end end