class NewRelic::Agent::Instrumentation::Webmachine::NewRelicRequest
Encapsulates what New Relic wants to know about requests. This is necessary because we can’t (easily) get a Rack::Request.
Public Class Methods
new(wm_request)
click to toggle source
# File lib/new_relic/webmachine/instrument.rb, line 46 def initialize(wm_request) @wm_request = wm_request end
Public Instance Methods
referer()
click to toggle source
# File lib/new_relic/webmachine/instrument.rb, line 54 def referer @wm_request["HTTP_REFERER"] end
uri()
click to toggle source
# File lib/new_relic/webmachine/instrument.rb, line 50 def uri @wm_request.uri.to_s end