newrelic_rpm 2.9.6 → 2.9.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of newrelic_rpm might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ v2.9.8.
2
+ * Fix bug in Net instrumentation when a block is passed to request calls.
3
+
4
+ v2.9.7.
5
+ * Fix External instrumentation so it does not capture Net
6
+ calls outside of web transactions.
7
+
1
8
  v2.9.6.
2
9
  * add instrumentation for Net::HTTP calls, to show up as "External"
3
10
  * added support for validating agents in the cloud.
@@ -1,9 +1,21 @@
1
- # ActiveMerchant Instrumentation.
2
-
3
1
  if defined? Net::HTTP
4
2
  Net::HTTP.class_eval do
5
- add_method_tracer "request", 'External/#{@address}/Net::HTTP/#{args[0].method}'# + op
6
- add_method_tracer "request", 'External/#{@address}/all', :push_scope => false
7
- add_method_tracer "request", 'External/allWeb', :push_scope => false
3
+ def request_with_newrelic_trace(*args, &block)
4
+ if Thread::current[:newrelic_scope_stack].nil?
5
+ request_without_newrelic_trace(*args, &block)
6
+ else
7
+ self.class.trace_method_execution_with_scope("External/#{@address}/Net::HTTP/#{args[0].method}",
8
+ true,
9
+ true) do
10
+ self.class.trace_method_execution_no_scope("External/#{@address}/all") do
11
+ self.class.trace_method_execution_no_scope("External/allWeb") do
12
+ request_without_newrelic_trace(*args, &block)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ alias request_without_newrelic_trace request
19
+ alias request request_with_newrelic_trace
8
20
  end
9
21
  end
@@ -3,7 +3,7 @@ module NewRelic
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 2
5
5
  MINOR = 9
6
- TINY = 6
6
+ TINY = 8
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
9
9
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{newrelic_rpm}
5
- s.version = "2.9.6"
5
+ s.version = "2.9.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Bill Kayser"]
9
- s.date = %q{2009-11-13}
9
+ s.date = %q{2009-11-18}
10
10
  s.description = %q{New Relic Ruby Performance Monitoring Agent}
11
11
  s.email = %q{bkayser@newrelic.com}
12
12
  s.executables = ["mongrel_rpm", "newrelic_cmd"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.6
4
+ version: 2.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Kayser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-13 00:00:00 -08:00
12
+ date: 2009-11-18 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency