Sha256: b1fc8c3bbbacf2b20cfe42cfcab2a159554e03ff4e7e9fa8caa774046749b67c

Contents?: true

Size: 426 Bytes

Versions: 8

Compression:

Stored size: 426 Bytes

Contents

require 'merb-core/dispatch/dispatcher'
# NewRelic RPM instrumentation for http request dispatching (Routes mapping)
Merb::Request.class_eval do
  
  include NewRelic::Agent::Instrumentation::DispatcherInstrumentation

  alias_method :dispatch_without_newrelic, :handle
  alias_method :handle, :dispatch_newrelic
  def newrelic_response_code
    # Don't have an easy way to get the HTTP status from here yet
    nil
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
newrelic_rpm-2.9.9 lib/new_relic/agent/instrumentation/merb/dispatcher.rb
newrelic_rpm-2.9.8 lib/new_relic/agent/instrumentation/merb/dispatcher.rb
newrelic_rpm-2.9.6 lib/new_relic/agent/instrumentation/merb/dispatcher.rb
genki-newrelic_rpm-2.10.1 lib/new_relic/agent/instrumentation/merb/dispatcher.rb
newrelic_rpm-2.9.5 lib/new_relic/agent/instrumentation/merb/dispatcher.rb
newrelic_rpm-2.9.2 lib/new_relic/agent/instrumentation/merb/dispatcher.rb
newrelic_rpm-2.9.3 lib/new_relic/agent/instrumentation/merb/dispatcher.rb
newrelic_rpm-2.9.4 lib/new_relic/agent/instrumentation/merb/dispatcher.rb