newrelic_rpm 2.8.9 → 2.8.10

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.

@@ -27,6 +27,11 @@ module NewRelic::Agent
27
27
  end
28
28
  end
29
29
 
30
+ def current_sample_id
31
+ b=builder
32
+ b and b.sample_id
33
+ end
34
+
30
35
  def disable
31
36
  NewRelic::Agent.instance.stats_engine.remove_scope_stack_listener self
32
37
  end
@@ -196,6 +201,10 @@ module NewRelic::Agent
196
201
  @current_segment = @sample.root_segment
197
202
  end
198
203
 
204
+ def sample_id
205
+ @sample.sample_id
206
+ end
207
+
199
208
  def trace_entry(metric_name, time)
200
209
  segment = @sample.create_segment(time - @sample_start, metric_name)
201
210
  @current_segment.add_called_segment(segment)
@@ -103,8 +103,7 @@ class NewRelic::Config::Rails < NewRelic::Config
103
103
  log.debug "Unable to get the Rails info: #{e.inspect}"
104
104
  end
105
105
 
106
- # Would like to get this from config, but how?
107
- plugins = Dir[File.join(File.expand_path(__FILE__+"/../../../../.."),"/*")].collect { |p| File.basename p }
106
+ plugins = Dir[File.expand_path(File.join(RAILS_ROOT,"vendor","plugins","*"))].collect { |p| File.basename p }
108
107
  i << ['Plugin List', plugins]
109
108
 
110
109
  # Look for a capistrano file indicating the current revision:
@@ -33,6 +33,8 @@ module NewRelic
33
33
  end
34
34
  end
35
35
  def check_for_webrick
36
+ # Some indication this is causing problems. To be fixed in 2.9.0
37
+ return
36
38
  # This will not succeed on rails 2.2 and later
37
39
  if defined?(WEBrick) && defined?(OPTIONS) && ::OPTIONS.respond_to?(:fetch)
38
40
  # OPTIONS is set by script/server
@@ -61,10 +63,9 @@ module NewRelic
61
63
  # Still can't find the port. Let's look at ARGV to fall back
62
64
  @identifier = default_port if @identifier.nil?
63
65
  end
64
-
65
- def check_for_thin
66
+ def check_for_thin
66
67
  if defined? Thin::Server
67
- # This case covers the thin web server
68
+ # This case covers the thin web dispatcher
68
69
  # Same issue as above- we assume only one instance per process
69
70
  ObjectSpace.each_object(Thin::Server) do |thin_server|
70
71
  @environment = :thin
@@ -80,6 +81,10 @@ module NewRelic
80
81
  end
81
82
  end # each thin instance
82
83
  end
84
+ if defined?(Thin::VERSION) && !@identifier
85
+ @environment = :thin
86
+ @identifier = default_port
87
+ end
83
88
  end
84
89
 
85
90
  def check_for_jruby
@@ -127,7 +132,7 @@ module NewRelic
127
132
  default_port = 3000
128
133
  OptionParser.new do |opts|
129
134
  opts.on("-p", "--port=port", String) { | default_port | }
130
- opts.parse!(ARGV.clone)
135
+ opts.parse(ARGV.clone) rescue nil
131
136
  end
132
137
  default_port
133
138
  end
@@ -3,7 +3,7 @@ module NewRelic
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 2
5
5
  MINOR = 8
6
- TINY = 9
6
+ TINY = 10
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  def self.changes
9
9
  puts "NewRelic RPM Plugin Version: #{NewRelic::VERSION::STRING}"
@@ -11,6 +11,10 @@ module NewRelic
11
11
  end
12
12
 
13
13
  CHANGELOG = <<EOF
14
+ 2009-04-29 version 2.8.10
15
+ * fix thin support with rails 2.3.2 when using script/server
16
+ * fix incompatibility with rails 2.3.2 and script/server options processing
17
+ * minor tweak to environment gathering for gem mode
14
18
  2009-04-17 version 2.8.9
15
19
  * fix problem finding the newrelic controller in dev mode
16
20
  * fix incompatibility with older versions of optparse
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.8.9
4
+ version: 2.8.10
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-04-17 00:00:00 -07:00
12
+ date: 2009-05-05 00:00:00 -07:00
13
13
  default_executable: newrelic_cmd
14
14
  dependencies: []
15
15