newrelic_rpm 3.4.0 → 3.4.0.1
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 +4 -0
- data/lib/new_relic/agent/agent.rb +7 -2
- data/lib/new_relic/control/server_methods.rb +4 -1
- data/lib/new_relic/version.rb +1 -1
- data/newrelic_rpm.gemspec +6 -7
- data/test/new_relic/agent/agent/connect_test.rb +1 -1
- metadata +64 -96
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
v3.4.0.1
|
2
|
+
* Prevent the agent from resolving the collector address when disabled.
|
3
|
+
* Fix for error collector configuration that was introduced during beta.
|
4
|
+
|
1
5
|
v3.4.0
|
2
6
|
* Major refactor of data transmission mechanism. This enabled child processes to send data to parent processes, which then send the data to the New Relic service. This should only affect Resque users, dramatically improving their experience.
|
3
7
|
* Moved Resque instrumentation from rpm_contrib to main agent. Resque users should discontinue use of rpm_contrib or upgrade to 2.1.11.
|
@@ -30,7 +30,10 @@ module NewRelic
|
|
30
30
|
@obfuscator = lambda {|sql| NewRelic::Agent::Database.default_sql_obfuscator(sql) }
|
31
31
|
@forked = false
|
32
32
|
|
33
|
-
|
33
|
+
# FIXME: temporary work around for RUBY-839
|
34
|
+
if control.monitor_mode?
|
35
|
+
@service = NewRelic::Agent::NewRelicService.new(control.license_key, control.server)
|
36
|
+
end
|
34
37
|
end
|
35
38
|
|
36
39
|
# contains all the class-level methods for NewRelic::Agent::Agent
|
@@ -866,7 +869,7 @@ module NewRelic
|
|
866
869
|
config_transaction_tracer
|
867
870
|
log_connection!(config_data)
|
868
871
|
configure_transaction_tracer!(config_data['collect_traces'], config_data['sample_rate'])
|
869
|
-
configure_error_collector!(config_data['
|
872
|
+
configure_error_collector!(config_data['collect_errors'])
|
870
873
|
end
|
871
874
|
|
872
875
|
# Logs when we connect to the server, for debugging purposes
|
@@ -1006,6 +1009,8 @@ module NewRelic
|
|
1006
1009
|
# transmission later
|
1007
1010
|
def harvest_and_send_timeslice_data
|
1008
1011
|
now = Time.now
|
1012
|
+
NewRelic::Agent.instance.stats_engine.get_stats_no_scope('Supportability/invoke_remote').record_data_point(0.0)
|
1013
|
+
NewRelic::Agent.instance.stats_engine.get_stats_no_scope('Supportability/invoke_remote/metric_data').record_data_point(0.0)
|
1009
1014
|
harvest_timeslice_data(now)
|
1010
1015
|
# In this version of the protocol, we get back an assoc array of spec to id.
|
1011
1016
|
metric_specs_and_ids = @service.metric_data(@last_harvest_time.to_f,
|
@@ -53,7 +53,10 @@ module NewRelic
|
|
53
53
|
return host if verify_certificate?
|
54
54
|
return nil if host.nil? || host.downcase == "localhost"
|
55
55
|
ip = resolve_ip_address(host)
|
56
|
-
|
56
|
+
|
57
|
+
# FIXME: commented out to squelch STDOUT output for RUBY-839
|
58
|
+
# should bring it back when logging / startup is fixed
|
59
|
+
# log.info "Resolved #{host} to #{ip}"
|
57
60
|
ip
|
58
61
|
end
|
59
62
|
|
data/lib/new_relic/version.rb
CHANGED
@@ -4,7 +4,7 @@ module NewRelic
|
|
4
4
|
MAJOR = 3
|
5
5
|
MINOR = 4
|
6
6
|
TINY = 0
|
7
|
-
BUILD =
|
7
|
+
BUILD = 1 # 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
@@ -1,18 +1,18 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "newrelic_rpm"
|
8
|
-
s.version = "3.4.0"
|
8
|
+
s.version = "3.4.0.1"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bill Kayser", "Jon Guymon", "Justin George", "Darin Swanson"]
|
12
|
-
s.date = "2012-06-
|
12
|
+
s.date = "2012-06-25"
|
13
13
|
s.description = "New Relic is a performance management system, developed by New Relic,\nInc (http://www.newrelic.com). New Relic provides you with deep\ninformation about the performance of your web application as it runs\nin production. The New Relic Ruby Agent is dual-purposed as a either a\nGem or plugin, hosted on\nhttp://github.com/newrelic/rpm/\n"
|
14
14
|
s.email = "support@newrelic.com"
|
15
|
-
s.executables = ["
|
15
|
+
s.executables = ["mongrel_rpm", "newrelic", "newrelic_cmd"]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"CHANGELOG",
|
18
18
|
"LICENSE",
|
@@ -296,9 +296,8 @@ Gem::Specification.new do |s|
|
|
296
296
|
]
|
297
297
|
s.homepage = "http://www.github.com/newrelic/rpm"
|
298
298
|
s.post_install_message = "\nPLEASE NOTE:\n\nDeveloper Mode is now a Rack middleware.\n\nDeveloper Mode is no longer available in Rails 2.1 and earlier.\nHowever, starting in version 2.12 you can use Developer Mode in any\nRack based framework, in addition to Rails. To install developer mode\nin a non-Rails application, just add NewRelic::Rack::DeveloperMode to\nyour middleware stack.\n\nIf you are using JRuby, we recommend using at least version 1.4 or \nlater because of issues with the implementation of the timeout library.\n\nRefer to the README.md file for more information.\n\nPlease see http://github.com/newrelic/rpm/blob/master/CHANGELOG\nfor a complete description of the features and enhancements available\nin version 3.4 of the Ruby Agent.\n \n"
|
299
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "New Relic Ruby Agent"]
|
299
|
+
s.rdoc_options = ["--charset=UTF-8", "--line-numbers", "--inline-source", "--title", "New Relic Ruby Agent"]
|
300
300
|
s.require_paths = ["lib"]
|
301
|
-
s.rubygems_version = "1.8.21"
|
302
301
|
s.summary = "New Relic Ruby Agent"
|
303
302
|
|
304
303
|
if s.respond_to? :specification_version then
|
@@ -363,7 +363,7 @@ class NewRelic::Agent::Agent::ConnectTest < Test::Unit::TestCase
|
|
363
363
|
'data_report_period' => 'pasta sauce',
|
364
364
|
'url_rules' => 'tamales',
|
365
365
|
'collect_traces' => true,
|
366
|
-
'
|
366
|
+
'collect_errors' => true,
|
367
367
|
'sample_rate' => 10
|
368
368
|
}
|
369
369
|
NewRelic::Control.instance.settings['transaction_tracer'] = {'enabled' => true}
|
metadata
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.4.0.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 4
|
9
|
-
- 0
|
10
|
-
version: 3.4.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Bill Kayser
|
14
9
|
- Jon Guymon
|
15
10
|
- Justin George
|
@@ -17,72 +12,66 @@ authors:
|
|
17
12
|
autorequire:
|
18
13
|
bindir: bin
|
19
14
|
cert_chain: []
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
- !ruby/object:Gem::Dependency
|
15
|
+
date: 2012-06-25 00:00:00.000000000 Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
24
18
|
name: jeweler
|
25
|
-
|
26
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
requirement: &2158373720 !ruby/object:Gem::Requirement
|
27
20
|
none: false
|
28
|
-
requirements:
|
29
|
-
- -
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
|
32
|
-
segments:
|
33
|
-
- 0
|
34
|
-
version: "0"
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '0'
|
35
25
|
type: :development
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: mocha
|
39
26
|
prerelease: false
|
40
|
-
|
27
|
+
version_requirements: *2158373720
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: mocha
|
30
|
+
requirement: &2158373160 !ruby/object:Gem::Requirement
|
41
31
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
32
|
+
requirements:
|
33
|
+
- - ! '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
49
36
|
type: :development
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: shoulda
|
53
37
|
prerelease: false
|
54
|
-
|
38
|
+
version_requirements: *2158373160
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: shoulda
|
41
|
+
requirement: &2158372660 !ruby/object:Gem::Requirement
|
55
42
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
63
47
|
type: :development
|
64
|
-
|
65
|
-
|
66
|
-
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: *2158372660
|
50
|
+
description: ! 'New Relic is a performance management system, developed by New Relic,
|
51
|
+
|
67
52
|
Inc (http://www.newrelic.com). New Relic provides you with deep
|
53
|
+
|
68
54
|
information about the performance of your web application as it runs
|
55
|
+
|
69
56
|
in production. The New Relic Ruby Agent is dual-purposed as a either a
|
57
|
+
|
70
58
|
Gem or plugin, hosted on
|
59
|
+
|
71
60
|
http://github.com/newrelic/rpm/
|
72
61
|
|
62
|
+
'
|
73
63
|
email: support@newrelic.com
|
74
|
-
executables:
|
75
|
-
- newrelic_cmd
|
64
|
+
executables:
|
76
65
|
- mongrel_rpm
|
77
66
|
- newrelic
|
67
|
+
- newrelic_cmd
|
78
68
|
extensions: []
|
79
|
-
|
80
|
-
extra_rdoc_files:
|
69
|
+
extra_rdoc_files:
|
81
70
|
- CHANGELOG
|
82
71
|
- LICENSE
|
83
72
|
- README.rdoc
|
84
73
|
- newrelic.yml
|
85
|
-
files:
|
74
|
+
files:
|
86
75
|
- CHANGELOG
|
87
76
|
- LICENSE
|
88
77
|
- README.rdoc
|
@@ -358,60 +347,39 @@ files:
|
|
358
347
|
- vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb
|
359
348
|
homepage: http://www.github.com/newrelic/rpm
|
360
349
|
licenses: []
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
your middleware stack.
|
373
|
-
|
374
|
-
If you are using JRuby, we recommend using at least version 1.4 or
|
375
|
-
later because of issues with the implementation of the timeout library.
|
376
|
-
|
377
|
-
Refer to the README.md file for more information.
|
378
|
-
|
379
|
-
Please see http://github.com/newrelic/rpm/blob/master/CHANGELOG
|
380
|
-
for a complete description of the features and enhancements available
|
381
|
-
in version 3.4 of the Ruby Agent.
|
382
|
-
|
383
|
-
|
384
|
-
rdoc_options:
|
350
|
+
post_install_message: ! "\nPLEASE NOTE:\n\nDeveloper Mode is now a Rack middleware.\n\nDeveloper
|
351
|
+
Mode is no longer available in Rails 2.1 and earlier.\nHowever, starting in version
|
352
|
+
2.12 you can use Developer Mode in any\nRack based framework, in addition to Rails.
|
353
|
+
\ To install developer mode\nin a non-Rails application, just add NewRelic::Rack::DeveloperMode
|
354
|
+
to\nyour middleware stack.\n\nIf you are using JRuby, we recommend using at least
|
355
|
+
version 1.4 or \nlater because of issues with the implementation of the timeout
|
356
|
+
library.\n\nRefer to the README.md file for more information.\n\nPlease see http://github.com/newrelic/rpm/blob/master/CHANGELOG\nfor
|
357
|
+
a complete description of the features and enhancements available\nin version 3.4
|
358
|
+
of the Ruby Agent.\n \n"
|
359
|
+
rdoc_options:
|
360
|
+
- --charset=UTF-8
|
385
361
|
- --line-numbers
|
386
362
|
- --inline-source
|
387
363
|
- --title
|
388
364
|
- New Relic Ruby Agent
|
389
|
-
require_paths:
|
365
|
+
require_paths:
|
390
366
|
- lib
|
391
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
367
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
392
368
|
none: false
|
393
|
-
requirements:
|
394
|
-
- -
|
395
|
-
- !ruby/object:Gem::Version
|
396
|
-
|
397
|
-
|
398
|
-
- 0
|
399
|
-
version: "0"
|
400
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
369
|
+
requirements:
|
370
|
+
- - ! '>='
|
371
|
+
- !ruby/object:Gem::Version
|
372
|
+
version: '0'
|
373
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
401
374
|
none: false
|
402
|
-
requirements:
|
403
|
-
- -
|
404
|
-
- !ruby/object:Gem::Version
|
405
|
-
|
406
|
-
segments:
|
407
|
-
- 0
|
408
|
-
version: "0"
|
375
|
+
requirements:
|
376
|
+
- - ! '>'
|
377
|
+
- !ruby/object:Gem::Version
|
378
|
+
version: 1.3.1
|
409
379
|
requirements: []
|
410
|
-
|
411
380
|
rubyforge_project:
|
412
|
-
rubygems_version: 1.8.
|
381
|
+
rubygems_version: 1.8.11
|
413
382
|
signing_key:
|
414
383
|
specification_version: 3
|
415
384
|
summary: New Relic Ruby Agent
|
416
385
|
test_files: []
|
417
|
-
|