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 +7 -0
- data/lib/new_relic/agent/instrumentation/net.rb +17 -5
- data/lib/new_relic/version.rb +1 -1
- data/newrelic_rpm.gemspec +2 -2
- metadata +2 -2
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
|
-
|
6
|
-
|
7
|
-
|
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
|
data/lib/new_relic/version.rb
CHANGED
data/newrelic_rpm.gemspec
CHANGED
@@ -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.
|
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-
|
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.
|
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-
|
12
|
+
date: 2009-11-18 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|