Sha256: d8ae1c25b1c3c6ec1412747cd069de12ae4b883ff03279731bd12ad4256e897a

Contents?: true

Size: 757 Bytes

Versions: 17

Compression:

Stored size: 757 Bytes

Contents

require 'set'
require 'merb-core/controller/merb_controller'

Merb::Controller.class_eval do
  include NewRelic::Agent::Instrumentation::ControllerInstrumentation

  class_inheritable_accessor :do_not_trace
  class_inheritable_accessor :ignore_apdex

  def self.newrelic_write_attr(attr_name, value) # :nodoc:
    self.send "#{attr_name}=", attr_name, value
  end

  def self.newrelic_read_attr(attr_name) # :nodoc:
    self.send attr_name
  end

  protected
  # determine the path that is used in the metric name for
  # the called controller action
  def newrelic_metric_path
    "#{controller_name}/#{action_name}"
  end
  alias_method :perform_action_without_newrelic_trace, :_dispatch
  alias_method :_dispatch, :perform_action_with_newrelic_trace
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
newrelic_rpm-2.13.4.rum6 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.4.rum5 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.6.beta1 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.4.rum4 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.5.beta4 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.5.beta3 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.5.beta2 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.5.beta1 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.4.eum3 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.4.eum2 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.4.eum1 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.4 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.3 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.3.beta lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.2 lib/new_relic/agent/instrumentation/merb/controller.rb
honkster-newrelic_rpm-2.13.1 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.13.1 lib/new_relic/agent/instrumentation/merb/controller.rb