net-http-instrumentation 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ test/log/newrelic_agent.log
@@ -1,7 +1,7 @@
1
1
  module Net
2
2
  module Http
3
3
  module Instrumentation
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -16,4 +16,8 @@ end
16
16
  Net::HTTPResponse.class_eval do
17
17
  include NewRelic::Agent::MethodTracer
18
18
  add_method_tracer :read_body, 'Custom/Net/Http/HTTPResponse/read_body', :metric => false
19
+ class << self
20
+ include NewRelic::Agent::MethodTracer
21
+ add_method_tracer :read_new, 'Custom/Net/Http/HTTPResponse/read_new', :metric => false
22
+ end
19
23
  end
@@ -8,6 +8,6 @@ require 'net/http/instrumentation/newrelic_rpm'
8
8
  use NewRelic::Rack::DeveloperMode
9
9
 
10
10
  get '/test' do
11
- res = Net::HTTP.get('www.google.com', '/')
11
+ res = Net::HTTP.get('www.google.de', '/')
12
12
  res
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-http-instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-23 00:00:00.000000000 Z
12
+ date: 2012-07-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Provide some instrumentation for Net::HTTP
15
15
  email: