newrelic_rpm 3.1.0.beta1 → 3.1.0.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.

Files changed (37) hide show
  1. data/CHANGELOG +8 -2
  2. data/README.rdoc +28 -28
  3. data/bin/mongrel_rpm +1 -1
  4. data/lib/new_relic/agent.rb +24 -23
  5. data/lib/new_relic/agent/agent.rb +13 -11
  6. data/lib/new_relic/agent/beacon_configuration.rb +12 -8
  7. data/lib/new_relic/agent/browser_monitoring.rb +2 -2
  8. data/lib/new_relic/agent/error_collector.rb +1 -1
  9. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +2 -2
  10. data/lib/new_relic/agent/instrumentation/data_mapper.rb +1 -1
  11. data/lib/new_relic/commands/deployments.rb +1 -1
  12. data/lib/new_relic/control/configuration.rb +1 -1
  13. data/lib/new_relic/delayed_job_injection.rb +5 -4
  14. data/lib/new_relic/histogram.rb +1 -1
  15. data/lib/new_relic/noticed_error.rb +1 -1
  16. data/lib/new_relic/rack/browser_monitoring.rb +7 -1
  17. data/lib/new_relic/rack/metric_app.rb +1 -0
  18. data/lib/new_relic/rack/mongrel_rpm.ru +2 -0
  19. data/lib/new_relic/recipes.rb +1 -1
  20. data/lib/new_relic/transaction_sample.rb +3 -2
  21. data/lib/new_relic/transaction_sample/segment.rb +4 -3
  22. data/lib/new_relic/version.rb +1 -1
  23. data/newrelic.yml +26 -26
  24. data/newrelic_rpm.gemspec +14 -19
  25. data/test/active_record_fixtures.rb +1 -1
  26. data/test/new_relic/agent/agent/connect_test.rb +6 -6
  27. data/test/new_relic/agent/agent/start_test.rb +1 -1
  28. data/test/new_relic/agent/agent/start_worker_thread_test.rb +1 -1
  29. data/test/new_relic/agent/agent_test.rb +43 -0
  30. data/test/new_relic/agent/beacon_configuration_test.rb +18 -35
  31. data/test/new_relic/agent/browser_monitoring_test.rb +17 -6
  32. data/test/new_relic/agent/error_collector/notice_error_test.rb +1 -1
  33. data/test/new_relic/rack/all_test.rb +11 -0
  34. data/ui/views/newrelic/_show_sample_sql.rhtml +1 -1
  35. data/ui/views/newrelic/index.rhtml +1 -1
  36. metadata +20 -25
  37. data/test/new_relic/rack/episodes_test.rb +0 -318
@@ -175,7 +175,7 @@ module NewRelic
175
175
  # dispatches to more specific operation methods based on a
176
176
  # parameter (very dangerous, btw!). With this instrumentation,
177
177
  # the +invoke_operation+ action is ignored but the operation
178
- # methods show up in RPM as if they were first class controller
178
+ # methods show up in New Relic as if they were first class controller
179
179
  # actions
180
180
  #
181
181
  # MyController < ActionController::Base
@@ -199,7 +199,7 @@ module NewRelic
199
199
  # controller action and will appear with all the other actions. This
200
200
  # is the default.
201
201
  # * <tt>:category => :task</tt> indicates that this is a
202
- # background task and will show up in RPM with other background
202
+ # background task and will show up in New Relic with other background
203
203
  # tasks instead of in the controllers list
204
204
  # * <tt>:category => :rack</tt> if you are instrumenting a rack
205
205
  # middleware call. The <tt>:name</tt> is optional, useful if you
@@ -19,7 +19,7 @@
19
19
  # NOTE: On using "Database" versus "ActiveRecord" as base metric name
20
20
  #
21
21
  # Using "Database" as the metric name base seems to properly identify methods
22
- # as being DB-related in call graphs, but certain RPM views that show
22
+ # as being DB-related in call graphs, but certain New Relic views that show
23
23
  # aggregations of DB CPM, etc still seem to rely solely on "ActiveRecord"
24
24
  # being the base name, thus AFAICT "Database" calls to this are lost. (Though
25
25
  # I haven't yet tested "Database/SQL/{find/save/destroy/all}" yet, as it seems
@@ -32,7 +32,7 @@ class NewRelic::Command::Deployments < NewRelic::Command
32
32
  @appname ||= config.app_names[0] || config.env || 'development'
33
33
  end
34
34
 
35
- # Run the Deployment upload in RPM via Active Resource.
35
+ # Run the Deployment upload in New Relic via Active Resource.
36
36
  # Will possibly print errors and exit the VM
37
37
  def run
38
38
  begin
@@ -97,7 +97,7 @@ module NewRelic
97
97
  end
98
98
 
99
99
  # Configuration option of the same name to indicate that we should connect
100
- # to RPM synchronously on startup. This means when the agent is loaded it
100
+ # to New Relic synchronously on startup. This means when the agent is loaded it
101
101
  # won't return without trying to set up the server connection at least once
102
102
  # which can make startup take longer. Defaults to false.
103
103
  def sync_startup
@@ -1,7 +1,8 @@
1
1
  require 'dependency_detection'
2
- # This installs some code to manually start the agent when a delayed job worker starts.
3
- # It's not really instrumentation. It's more like a hook from DJ to RPM so it gets
4
- # loaded at the time the RPM plugin initializes, which must be before the DJ worker
2
+ # This installs some code to manually start the agent when a delayed
3
+ # job worker starts. It's not really instrumentation. It's more like
4
+ # a hook from DJ to the Ruby Agent so it gets loaded at the time the
5
+ # Ruby Agent initializes, which must be before the DJ worker
5
6
  # initializes. Loaded from control.rb
6
7
  module NewRelic
7
8
  module DelayedJobInjection
@@ -24,7 +25,7 @@ DependencyDetection.defer do
24
25
  when self.class.respond_to?(:default_name) then self.class.default_name
25
26
  end
26
27
  dispatcher_instance_id = worker_name || "host:#{Socket.gethostname} pid:#{Process.pid}" rescue "pid:#{Process.pid}"
27
- say "RPM Monitoring DJ worker #{dispatcher_instance_id}"
28
+ say "New Relic Ruby Agent Monitoring DJ worker #{dispatcher_instance_id}"
28
29
  NewRelic::DelayedJobInjection.worker_name = worker_name
29
30
  NewRelic::Control.instance.init_plugin :dispatcher => :delayed_job, :dispatcher_instance_id => dispatcher_instance_id
30
31
  end
@@ -15,7 +15,7 @@ module NewRelic
15
15
  # Stores statistics for response times falling in a particular range.
16
16
  # A bucket has a min and max response time. A response time event
17
17
  # falls in a bucket if min <= r/t < max. A bucket also
18
- # has an associated metric for reporting data to RPM. The
18
+ # has an associated metric for reporting data to New Relic. The
19
19
  # bucket range is encoded in the metic name
20
20
  class Bucket
21
21
 
@@ -1,4 +1,4 @@
1
- # This class encapsulates an error that was noticed by RPM in a managed app.
1
+ # This class encapsulates an error that was noticed by New Relic in a managed app.
2
2
  class NewRelic::NoticedError
3
3
  extend NewRelic::CollectionHelper
4
4
  attr_accessor :path, :timestamp, :params, :exception_class, :message
@@ -9,6 +9,12 @@ module NewRelic::Rack
9
9
 
10
10
  # method required by Rack interface
11
11
  def call(env)
12
+
13
+ # clear out the thread locals we use in case this is a static request
14
+ Thread.current[:newrelic_most_recent_transaction] = nil
15
+ Thread.current[:newrelic_start_time] = Time.now
16
+ Thread.current[:newrelic_queue_time] = 0
17
+
12
18
  result = @app.call(env) # [status, headers, response]
13
19
 
14
20
  if (NewRelic::Agent.browser_timing_header != "") && should_instrument?(result[0], result[1])
@@ -30,7 +36,7 @@ module NewRelic::Rack
30
36
 
31
37
  def autoinstrument_source(response, headers)
32
38
  source = nil
33
- response.each {|fragment| (source) ? (source << f) : (source = fragment)}
39
+ response.each {|fragment| (source) ? (source << fragment) : (source = fragment)}
34
40
 
35
41
  body_start = source.index("<body")
36
42
  body_close = source.rindex("</body>")
@@ -19,6 +19,7 @@ module NewRelic
19
19
  options[:app_name] ||= 'EPM Monitor'
20
20
  options[:disable_samplers] = true
21
21
  NewRelic::Agent.manual_start options
22
+ NewRelic::Agent.logger.warn "This rack app is deprecated - it will be removed in the next version of the Ruby Agent"
22
23
  unless NewRelic::Control.instance.license_key
23
24
  raise "Please add a valid license key to newrelic.yml."
24
25
  end
@@ -15,6 +15,8 @@ require 'new_relic/rack_app'
15
15
  # use Rack::ShowExceptions
16
16
  # use Rack::Reloader if ENV['RACK_ENV'] == 'development'
17
17
 
18
+ puts "This Rack Metric Collection system is deprecated - it will be removed in the next version of the Ruby Agent"
19
+
18
20
  map "/newrelic/record_value" do
19
21
  run NewRelic::Rack::MetricApp.new(options)
20
22
  end
@@ -13,7 +13,7 @@ make_notify_task = Proc.new do
13
13
  namespace :newrelic do
14
14
 
15
15
  # on all deployments, notify New Relic
16
- desc "Record a deployment in New Relic (rpm.newrelic.com)"
16
+ desc "Record a deployment in New Relic (newrelic.com)"
17
17
  task :notice_deployment, :roles => :app, :except => {:no_release => true } do
18
18
  rails_env = fetch(:newrelic_rails_env, fetch(:rails_env, "production"))
19
19
  require File.join(File.dirname(__FILE__), 'command.rb')
@@ -174,8 +174,9 @@ module NewRelic
174
174
  sample
175
175
  end
176
176
 
177
- # return a new transaction sample that can be sent to the RPM service.
178
- # this involves potentially one or more of the following options
177
+ # Return a new transaction sample that can be sent to the New
178
+ # Relic service. This involves potentially one or more of the
179
+ # following options
179
180
  #
180
181
  # :explain_sql : run EXPLAIN on all queries whose response times equal the value for this key
181
182
  # (for example :explain_sql => 2.0 would explain everything over 2 seconds. 0.0 would explain everything.)
@@ -157,14 +157,15 @@ module NewRelic
157
157
  nil
158
158
  end
159
159
 
160
- # perform this in the runtime environment of a managed
160
+ # Perform this in the runtime environment of a managed
161
161
  # application, to explain the sql statement(s) executed within a
162
- # segment of a transaction sample. returns an array of
162
+ # segment of a transaction sample. Returns an array of
163
163
  # explanations (which is an array rows consisting of an array of
164
164
  # strings for each column returned by the the explain query)
165
165
  # Note this happens only for statements whose execution time
166
166
  # exceeds a threshold (e.g. 500ms) and only within the slowest
167
- # transaction in a report period, selected for shipment to RPM
167
+ # transaction in a report period, selected for shipment to New
168
+ # Relic
168
169
  def explain_sql
169
170
  sql = params[:sql]
170
171
  return nil unless sql && params[:connection_config]
@@ -4,7 +4,7 @@ module NewRelic
4
4
  MAJOR = 3
5
5
  MINOR = 1
6
6
  TINY = 0
7
- BUILD = 'beta1' #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
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.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  #
2
- # This file configures the NewRelic RPM Agent, NewRelic RPM monitors
2
+ # This file configures the New Relic Ruby Agent, New Relic monitors
3
3
  # Rails applications with deep visibility and low overhead. For more
4
- # information, visit www.newrelic.com.
4
+ # information, visit www.newrelic.com
5
5
  #
6
6
  # Generated <%= Time.now.strftime('%B %d, %Y') %>, for version <%= NewRelic::VERSION::STRING %>
7
7
  #
@@ -14,7 +14,7 @@ common: &default_settings
14
14
 
15
15
  # You must specify the license key associated with your New Relic
16
16
  # account. This key binds your Agent's data to your account in the
17
- # New Relic RPM service.
17
+ # New Relic service.
18
18
  license_key: '<%= license_key %>'
19
19
 
20
20
  # Agent Enabled (Rails Only)
@@ -27,14 +27,14 @@ common: &default_settings
27
27
  #
28
28
  # agent_enabled: auto
29
29
 
30
- # Application Name
31
- # Set this to be the name of your application as you'd like it show
32
- # up in RPM. RPM will then auto-map instances of your application
33
- # into a RPM "application" on your home dashboard page. If you want
34
- # to map this instance into multiple apps, like "AJAX Requests" and
35
- # "All UI" then specify a semicolon separated list of up to three
36
- # distinct names, or a yaml list. Defaults to the
37
- # capitalized RAILS_ENV or RACK_ENV (i.e., Production, Staging, etc)
30
+ # Application Name Set this to be the name of your application as
31
+ # you'd like it show up in New Relic. The service will then auto-map
32
+ # instances of your application into an "application" on your
33
+ # dashboard page. If you want to map this instance into multiple
34
+ # apps, like "AJAX Requests" and "All UI" then specify a semicolon
35
+ # separated list of up to three distinct names, or a yaml list.
36
+ # Defaults to the capitalized RAILS_ENV or RACK_ENV (i.e.,
37
+ # Production, Staging, etc)
38
38
  #
39
39
  # Example:
40
40
  #
@@ -45,7 +45,7 @@ common: &default_settings
45
45
  app_name: <%= @app_name %>
46
46
 
47
47
  # When "true", the agent collects performance data about your
48
- # application and reports this data to the NewRelic RPM service at
48
+ # application and reports this data to the New Relic service at
49
49
  # newrelic.com. This global switch is normally overridden for each
50
50
  # environment below. (formerly called 'enabled')
51
51
  monitor_mode: true
@@ -68,7 +68,7 @@ common: &default_settings
68
68
  # Optionally set the name of the log file, defaults to 'newrelic_agent.log'
69
69
  # log_file_name: 'newrelic_agent.log'
70
70
 
71
- # The newrelic agent communicates with the RPM service via http by
71
+ # The newrelic agent communicates with the service via http by
72
72
  # default. If you want to communicate via https to increase
73
73
  # security, then turn on SSL by setting this value to true. Note,
74
74
  # this will result in increased CPU overhead to perform the
@@ -83,7 +83,7 @@ common: &default_settings
83
83
  # you send us needs end-to-end verified certificates.
84
84
  #
85
85
  # This means we cannot cache the DNS lookup, so each request to the
86
- # RPM service will perform a lookup. It also means that we cannot
86
+ # service will perform a lookup. It also means that we cannot
87
87
  # use a non-blocking lookup, so in a worst case, if you have DNS
88
88
  # problems, your app may block indefinitely.
89
89
  # verify_certificate: true
@@ -110,7 +110,7 @@ common: &default_settings
110
110
  # into web pages. Set this attribute to false to turn off this behavior.
111
111
  auto_instrument: true
112
112
 
113
- # Proxy settings for connecting to the RPM server.
113
+ # Proxy settings for connecting to the service.
114
114
  #
115
115
  # If a proxy is used, the host setting is required. Other settings
116
116
  # are optional. Default port is 8080.
@@ -132,22 +132,22 @@ common: &default_settings
132
132
 
133
133
 
134
134
  # Transaction tracer captures deep information about slow
135
- # transactions and sends this to the RPM service once a
135
+ # transactions and sends this to the service once a
136
136
  # minute. Included in the transaction is the exact call sequence of
137
137
  # the transactions including any SQL statements issued.
138
138
  transaction_tracer:
139
139
 
140
140
  # Transaction tracer is enabled by default. Set this to false to
141
- # turn it off. This feature is only available at the Silver and
142
- # above product levels.
141
+ # turn it off. This feature is only available at the Professional
142
+ # and above product levels.
143
143
  enabled: true
144
144
 
145
145
  # Threshold in seconds for when to collect a transaction
146
146
  # trace. When the response time of a controller action exceeds
147
147
  # this threshold, a transaction trace will be recorded and sent to
148
- # RPM. Valid values are any float value, or (default) "apdex_f",
149
- # which will use the threshold for an dissatisfying Apdex
150
- # controller action - four times the Apdex T value.
148
+ # the service. Valid values are any float value, or (default)
149
+ # "apdex_f", which will use the threshold for an dissatisfying
150
+ # Apdex controller action - four times the Apdex T value.
151
151
  transaction_threshold: apdex_f
152
152
 
153
153
  # When transaction tracer is on, SQL statements can optionally be
@@ -158,7 +158,7 @@ common: &default_settings
158
158
 
159
159
  # Threshold in seconds for when to collect stack trace for a SQL
160
160
  # call. In other words, when SQL statements exceed this threshold,
161
- # then capture and send to RPM the current stack trace. This is
161
+ # then capture and send the current stack trace. This is
162
162
  # helpful for pinpointing where long SQL calls originate from
163
163
  stack_trace_threshold: 0.500
164
164
 
@@ -172,11 +172,11 @@ common: &default_settings
172
172
  # explain_threshold: 0.5
173
173
 
174
174
  # Error collector captures information about uncaught exceptions and
175
- # sends them to RPM for viewing
175
+ # sends them to the service for viewing
176
176
  error_collector:
177
177
 
178
178
  # Error collector is enabled by default. Set this to false to turn
179
- # it off. This feature is only available at the Silver and above
179
+ # it off. This feature is only available at the Professional and above
180
180
  # product levels
181
181
  enabled: true
182
182
 
@@ -185,7 +185,7 @@ common: &default_settings
185
185
  # related.
186
186
  capture_source: true
187
187
 
188
- # To stop specific errors from reporting to RPM, set this property
188
+ # To stop specific errors from reporting to New Relic, set this property
189
189
  # to comma separated values. Default is to ignore routing errors
190
190
  # which are how 404's get triggered.
191
191
  #
@@ -226,7 +226,7 @@ common: &default_settings
226
226
 
227
227
  development:
228
228
  <<: *default_settings
229
- # Turn off communication to RPM service in development mode (also
229
+ # Turn off communication to New Relic service in development mode (also
230
230
  # 'enabled').
231
231
  # NOTE: for initial evaluation purposes, you may want to temporarily
232
232
  # turn the agent on in development mode.
data/newrelic_rpm.gemspec CHANGED
@@ -5,17 +5,17 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{newrelic_rpm}
8
- s.version = "3.1.0.beta1"
8
+ s.version = "3.1.0.beta2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bill Kayser", "Justin George"]
12
- s.date = %q{2011-05-11}
13
- s.description = %q{New Relic RPM is a Ruby performance management system, developed by
14
- New Relic, Inc (http://www.newrelic.com). RPM provides you with deep
15
- information about the performance of your Ruby on Rails or Merb
16
- application as it runs in production. The New Relic Agent is
17
- dual-purposed as a either a Rails plugin or a Gem, hosted on
18
- http://github.com/newrelic/rpm/tree/master.
12
+ s.date = %q{2011-05-20}
13
+ s.description = %q{New Relic is a performance management system, developed by New Relic,
14
+ Inc (http://www.newrelic.com). New Relic provides you with deep
15
+ information about the performance of your web application as it runs
16
+ in production. The New Relic Ruby Agent is dual-purposed as a either a
17
+ Gem or plugin, hosted on
18
+ http://github.com/newrelic/rpm/
19
19
  }
20
20
  s.email = %q{support@newrelic.com}
21
21
  s.executables = ["newrelic_cmd", "newrelic", "mongrel_rpm"]
@@ -185,7 +185,7 @@ http://github.com/newrelic/rpm/tree/master.
185
185
  "test/new_relic/local_environment_test.rb",
186
186
  "test/new_relic/metric_data_test.rb",
187
187
  "test/new_relic/metric_spec_test.rb",
188
- "test/new_relic/rack/episodes_test.rb",
188
+ "test/new_relic/rack/all_test.rb",
189
189
  "test/new_relic/stats_test.rb",
190
190
  "test/new_relic/transaction_analysis/segment_summary_test.rb",
191
191
  "test/new_relic/transaction_analysis_test.rb",
@@ -285,7 +285,7 @@ PLEASE NOTE:
285
285
 
286
286
  Developer Mode is now a Rack middleware.
287
287
 
288
- RPM Developer Mode is no longer available in Rails 2.1 and earlier.
288
+ Developer Mode is no longer available in Rails 2.1 and earlier.
289
289
  However, starting in version 2.12 you can use Developer Mode in any
290
290
  Rack based framework, in addition to Rails. To install developer mode
291
291
  in a non-Rails application, just add NewRelic::Rack::DeveloperMode to
@@ -296,20 +296,15 @@ later because of issues with the implementation of the timeout library.
296
296
 
297
297
  Refer to the README.md file for more information.
298
298
 
299
- Please see http://support.newrelic.com/faqs/docs/ruby-agent-release-notes
299
+ Please see http://github.com/newrelic/rpm/blob/master/CHANGELOG
300
300
  for a complete description of the features and enhancements available
301
301
  in version 3.1 of the Ruby Agent.
302
-
303
- For details on this specific release, refer to the CHANGELOG file.
304
-
305
- Notice: Developer Mode now supports only Rails 2.3+ - refer to README
306
- for instructions for previous versions
307
-
302
+
308
303
  }
309
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "New Relic Ruby Performance Monitoring Agent"]
304
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "New Relic Ruby Agent"]
310
305
  s.require_paths = ["lib"]
311
306
  s.rubygems_version = %q{1.3.6}
312
- s.summary = %q{New Relic Ruby Performance Monitoring Agent}
307
+ s.summary = %q{New Relic Ruby Agent}
313
308
 
314
309
  if s.respond_to? :specification_version then
315
310
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -65,7 +65,7 @@ module ActiveRecordFixtures
65
65
  end
66
66
  end
67
67
  def self.check_for_table
68
- connection.table_exists?(self.table_name)
68
+ connection.table_exists?(self.table_name) && connection.table_exists?('orders_shipments')
69
69
  rescue Exception => e
70
70
  false
71
71
  end
@@ -88,7 +88,7 @@ class NewRelic::Agent::Agent::ConnectTest < Test::Unit::TestCase
88
88
  fake_control = mock()
89
89
  fake_control.expects(:server).returns("server")
90
90
  self.expects(:control).once.returns(fake_control)
91
- log.expects(:error).with("Error establishing connection with New Relic RPM Service at server: message")
91
+ log.expects(:error).with("Error establishing connection with New Relic Service at server: message")
92
92
  log.expects(:debug).with("line\nsecondline")
93
93
  log_error(error)
94
94
  end
@@ -165,7 +165,7 @@ class NewRelic::Agent::Agent::ConnectTest < Test::Unit::TestCase
165
165
  fake_collector = mocked_error_collector
166
166
  fake_collector.expects(:config_enabled).returns(false)
167
167
  fake_collector.expects(:enabled=).with(false)
168
- log.expects(:debug).with("Errors will not be sent to the RPM service.")
168
+ log.expects(:debug).with("Errors will not be sent to the New Relic service.")
169
169
  configure_error_collector!(false)
170
170
  end
171
171
 
@@ -173,7 +173,7 @@ class NewRelic::Agent::Agent::ConnectTest < Test::Unit::TestCase
173
173
  fake_collector = mocked_error_collector
174
174
  fake_collector.expects(:config_enabled).returns(true)
175
175
  fake_collector.expects(:enabled=).with(true)
176
- log.expects(:debug).with("Errors will be sent to the RPM service.")
176
+ log.expects(:debug).with("Errors will be sent to the New Relic service.")
177
177
  configure_error_collector!(true)
178
178
  end
179
179
 
@@ -181,7 +181,7 @@ class NewRelic::Agent::Agent::ConnectTest < Test::Unit::TestCase
181
181
  fake_collector = mocked_error_collector
182
182
  fake_collector.expects(:config_enabled).returns(true)
183
183
  fake_collector.expects(:enabled=).with(false)
184
- log.expects(:debug).with("Errors will not be sent to the RPM service.")
184
+ log.expects(:debug).with("Errors will not be sent to the New Relic service.")
185
185
  configure_error_collector!(false)
186
186
  end
187
187
 
@@ -226,14 +226,14 @@ class NewRelic::Agent::Agent::ConnectTest < Test::Unit::TestCase
226
226
 
227
227
  def test_configure_transaction_tracer_negative
228
228
  @config_should_send_samples = false
229
- log.expects(:debug).with('Transaction traces will not be sent to the RPM service.')
229
+ log.expects(:debug).with('Transaction traces will not be sent to the New Relic service.')
230
230
  configure_transaction_tracer!(true, 10)
231
231
  assert !@should_send_samples
232
232
  end
233
233
 
234
234
  def test_configure_transaction_tracer_server_disabled
235
235
  @config_should_send_samples = true
236
- log.expects(:debug).with('Transaction traces will not be sent to the RPM service.')
236
+ log.expects(:debug).with('Transaction traces will not be sent to the New Relic service.')
237
237
  configure_transaction_tracer!(false, 10)
238
238
  assert !@should_send_samples
239
239
  end