Sha256: ca30231cea08e17bd8011a06dbaa383c997a14100d5ab8e45b195ea08c671190
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 Bytes
Contents
if defined? Net::HTTP Net::HTTP.class_eval do def request_with_newrelic_trace(*args, &block) if Thread::current[:newrelic_scope_stack].nil? request_without_newrelic_trace(*args, &block) else self.class.trace_method_execution_with_scope("External/#{@address}/Net::HTTP/#{args[0].method}", true, true) do self.class.trace_method_execution_no_scope("External/#{@address}/all") do self.class.trace_method_execution_no_scope("External/allWeb") do request_without_newrelic_trace(*args, &block) end end end end end alias request_without_newrelic_trace request alias request request_with_newrelic_trace end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-2.9.9 | lib/new_relic/agent/instrumentation/net.rb |
newrelic_rpm-2.9.8 | lib/new_relic/agent/instrumentation/net.rb |