vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb
# Not recommended for production use, because tracers must be removed in reverse-order
# from when they were added, or else other tracers that were added to the same method
# may get removed as well.
Not recommended for production use, because tracers must be removed in reverse-order
from when they were added, or else other tracers that were added to the same method
may get removed as well.
Not recommended for production use because tracers must be removed in reverse - order from when they were added or else other tracers that were added to the same method may get removed as well .
def remove_method_tracer(method_name, metric_name_code)
    return unless ::RPM_TRACERS_ENABLED
    if method_defined? "#{_traced_method_name(method_name, metric_name_code)}"
      alias_method method_name, "#{_untraced_method_name(method_name, metric_name_code)}"
      undef_method "#{_traced_method_name(method_name, metric_name_code)}"
    else
      raise "No tracer for '#{metric_name_code}' on method '#{method_name}'"
    end
  end
def remove_method_tracer ( method_name , metric_name_code ) return unless :: RPM_TRACERS_ENABLED if method_defined? "#{_traced_method_name(method_name, metric_name_code)}" alias_method method_name , "#{_untraced_method_name(method_name, metric_name_code)}" undef_method "#{_traced_method_name(method_name, metric_name_code)}" else raise "No tracer for '#{metric_name_code}' on method '#{method_name}'" end end
Not recommended for production use, because tracers must be removed in reverse-order
from when they were added, or else other tracers that were added to the same method
may get removed as well.
Not recommended for production use because tracers must be removed in reverse - order from when they were added or else other tracers that were added to the same method may get removed as well .
method_name
<not_specific>
metric_name_code
<not_specific>