newrelic_rpm 2.11.2.beta → 2.11.2.beta2
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
@@ -2,7 +2,7 @@ v2.11.2
|
|
2
2
|
* fix for unicorn not reporting when the proc line had 'master' in it
|
3
3
|
* allow overriding the log file directory via 'log_file_path' in newrelic.yml
|
4
4
|
* allow overriding the log name via 'log_file_name' in newrelic.yml
|
5
|
-
* fix for
|
5
|
+
* fix regression for passenger 2.0 and earlier
|
6
6
|
|
7
7
|
v2.11.1
|
8
8
|
* republished gem without generated rdocs
|
@@ -15,11 +15,22 @@ module NewRelic::Agent::Instrumentation
|
|
15
15
|
# as a Rack::Request or an ActionController::AbstractRequest.
|
16
16
|
attr_accessor :request
|
17
17
|
|
18
|
+
|
19
|
+
@@check_server_connection = false
|
20
|
+
def self.check_server_connection=(value)
|
21
|
+
@@check_server_connection = value
|
22
|
+
end
|
18
23
|
# Return the currently active metric frame, or nil. Call with +true+
|
19
24
|
# to create a new metric frame if one is not already on the thread.
|
20
25
|
def self.current(create_if_empty=nil)
|
21
26
|
f = Thread.current[:newrelic_metric_frame]
|
22
27
|
return f if f || !create_if_empty
|
28
|
+
|
29
|
+
# Reconnect to the server if necessary. This is only done
|
30
|
+
# for old versions of passenger that don't implement an explicit after_fork
|
31
|
+
# event.
|
32
|
+
NewRelic::Agent.instance.after_fork(:keep_retrying => false) if @@check_server_connection
|
33
|
+
|
23
34
|
Thread.current[:newrelic_metric_frame] = new
|
24
35
|
end
|
25
36
|
|
@@ -16,5 +16,11 @@ if defined?(PhusionPassenger)
|
|
16
16
|
# We're in conservative spawning mode. We don't need to do anything.
|
17
17
|
end
|
18
18
|
end
|
19
|
+
|
20
|
+
elsif (defined?(::Passenger) && defined?(::Passenger::AbstractServer)) || defined?(::IN_PHUSION_PASSENGER)
|
21
|
+
# We're on an older version of passenger
|
22
|
+
NewRelic::Agent.logger.warn "An older version of Phusion Passenger has been detected. We recommend using at least release 2.1.1."
|
23
|
+
|
24
|
+
NewRelic::Agent::Instrumentation::MetricFrame.check_server_connection = true
|
19
25
|
|
20
26
|
end
|
data/lib/new_relic/version.rb
CHANGED
@@ -4,7 +4,7 @@ module NewRelic
|
|
4
4
|
MAJOR = 2
|
5
5
|
MINOR = 11
|
6
6
|
TINY = 2
|
7
|
-
BUILD = '
|
7
|
+
BUILD = 'beta2' #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
|
8
8
|
STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
|
9
9
|
end
|
10
10
|
|
data/newrelic_rpm.gemspec
CHANGED