newrelic_rpm 2.9.8 → 2.9.9

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,7 @@
1
+ v2.9.9.
2
+ * Disable at_exit handler for Unicorn which sometimes caused the
3
+ agent to stop reporting immediately.
4
+
1
5
  v2.9.8.
2
6
  * Fix bug in Net instrumentation when a block is passed to request calls.
3
7
 
@@ -198,7 +198,9 @@ module NewRelic::Agent
198
198
  # When the VM shuts down, attempt to send a message to the
199
199
  # server that this agent run is stopping, assuming it has
200
200
  # successfully connected
201
- at_exit { shutdown }
201
+ # This shutdown handler doesn't work if Sinatra or Unicorn is running
202
+ # because it executes in the shutdown handler!
203
+ at_exit { shutdown } unless [:sinatra, :unicorn].include? NewRelic::Control.instance.dispatcher
202
204
  end
203
205
  end
204
206
  control.log! "New Relic RPM Agent #{NewRelic::VERSION::STRING} Initialized: pid = #{$$}"
@@ -162,7 +162,7 @@ module NewRelic
162
162
  self['dispatcher_instance_id'] || @local_env.dispatcher_instance_id
163
163
  end
164
164
  def dispatcher
165
- self['dispatcher'] || @local_env.dispatcher
165
+ (self['dispatcher'] && self['dispatcher'].to_sym) || @local_env.dispatcher
166
166
  end
167
167
  def app_names
168
168
  self['app_name'] ? self['app_name'].split(';') : []
@@ -3,7 +3,7 @@ module NewRelic
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 2
5
5
  MINOR = 9
6
- TINY = 8
6
+ TINY = 9
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
9
9
 
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.8"
5
+ s.version = "2.9.9"
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-18}
9
+ s.date = %q{2009-12-14}
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.8
4
+ version: 2.9.9
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-18 00:00:00 -08:00
12
+ date: 2009-12-14 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency