class HTTP::Client

Public Instance Methods

perform(request, options)
perform_with_newrelic_trace(request, options) click to toggle source
# File lib/newrelic_httprb/instrumentation.rb, line 16
def perform_with_newrelic_trace(request, options)
  wrapped_request = ::NewRelicHTTP::HTTPRequest.new(request)

  response = nil
  ::NewRelic::Agent::CrossAppTracing.tl_trace_http_request(wrapped_request) do
    response = perform_without_newrelic_trace(request, options)
    ::NewRelicHTTP::HTTPResponse.new(response)
  end

  response
end
Also aliased as: perform
perform_without_newrelic_trace(request, options)
Alias for: perform