Sha256: 1b873e18c25364a539fb107c9825f349c72dbe404b5f4840f5b8005596e0b4b3

Contents?: true

Size: 533 Bytes

Versions: 7

Compression:

Stored size: 533 Bytes

Contents

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

Merb::Controller.class_eval do
  include NewRelic::Agent::Instrumentation::ControllerInstrumentation
  
  class_inheritable_accessor :newrelic_ignore_attr
  
  protected
  # determine the path that is used in the metric name for
  # the called controller action
  def newrelic_metric_path(action)
    "#{controller_name}/#{action}"
  end
  alias_method :perform_action_without_newrelic_trace, :_dispatch
  alias_method :_dispatch, :perform_action_with_newrelic_trace
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-2.8.10 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.8.11 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.8.5 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.8.6 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.8.7 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.8.8 lib/new_relic/agent/instrumentation/merb/controller.rb
newrelic_rpm-2.8.9 lib/new_relic/agent/instrumentation/merb/controller.rb