class Object
Public Instance Methods
host()
click to toggle source
# File lib/newrelic-curb/instrument.rb, line 5 def host URI.parse((self.url.start_with?('http') ? '' : 'http://') + self.url).host end
perform(*args, &block)
Also aliased as: perform_without_newrelic_trace
Alias for: perform_with_newrelic_trace
perform_with_newrelic_trace(*args, &block)
click to toggle source
# File lib/newrelic-curb/instrument.rb, line 9 def perform_with_newrelic_trace(*args, &block) metrics = ["External/#{host}/Curl::Easy","External/#{host}/all","External/all"] if NewRelic::Agent::Instrumentation::MetricFrame.recording_web_transaction? metrics << "External/allWeb" else metrics << "External/allOther" end self.class.trace_execution_scoped metrics do perform_without_newrelic_trace(*args, &block) end end
Also aliased as: perform