Skip to content

Commit

Permalink
Add Net::HTTP instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Kayser committed Nov 13, 2009
1 parent dc8e309 commit 9b33fee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
13 changes: 7 additions & 6 deletions CHANGELOG
@@ -1,4 +1,5 @@
v2.9.6.
* add instrumentation for Net::HTTP calls, to show up as "External"
* added support for validating agents in the cloud.
* recognize Unicorn dispatcher
* add NewRelic module definitions to ActiveRecord instrumentation
Expand All @@ -7,14 +8,14 @@ v2.9.5.
* Snow Leopard memory fix

v2.9.4.
* Clamp size of data sent to server
* Reset statistics for passenger when forking to avoid erroneous data
* Fix problem deserializing errors from the server
* Fix incompatibility with postgres introduced in 2.9.
* clamp size of data sent to server
* reset statistics for passenger when forking to avoid erroneous data
* fix problem deserializing errors from the server
* fix incompatibility with postgres introduced in 2.9.

v2.9.3.
* Fix startup failure in Windows due to memory sampler
* Add JRuby environment information
* fix startup failure in Windows due to memory sampler
* add JRuby environment information

v2.9.2.
* change default apdex_t to 0.5 seconds
Expand Down
9 changes: 9 additions & 0 deletions lib/new_relic/agent/instrumentation/net.rb
@@ -0,0 +1,9 @@
# ActiveMerchant Instrumentation.

if defined? Net::HTTP
Net::HTTP.class_eval do
add_method_tracer "request", 'External/#{@address}/Net::HTTP/#{args[0].method}'# + op
add_method_tracer "request", 'External/#{@address}/all', :push_scope => false
add_method_tracer "request", 'External/allWeb', :push_scope => false
end
end

0 comments on commit 9b33fee

Please sign in to comment.