newrelic_rpm 3.6.8.168 → 3.6.9.171

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.gitignore +1 -0
  3. data/.yardopts +17 -0
  4. data/CHANGELOG +48 -0
  5. data/README.md +8 -6
  6. data/lib/new_relic/agent.rb +65 -17
  7. data/lib/new_relic/agent/agent.rb +42 -113
  8. data/lib/new_relic/agent/browser_monitoring.rb +9 -1
  9. data/lib/new_relic/agent/configuration/default_source.rb +12 -0
  10. data/lib/new_relic/agent/error_collector.rb +13 -6
  11. data/lib/new_relic/agent/instrumentation/active_record_subscriber.rb +5 -5
  12. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +15 -0
  13. data/lib/new_relic/agent/instrumentation/curb.rb +2 -2
  14. data/lib/new_relic/agent/instrumentation/metric_frame.rb +2 -2
  15. data/lib/new_relic/agent/instrumentation/rack.rb +2 -0
  16. data/lib/new_relic/agent/instrumentation/resque.rb +9 -3
  17. data/lib/new_relic/agent/instrumentation/sidekiq.rb +5 -0
  18. data/lib/new_relic/agent/method_tracer.rb +45 -27
  19. data/lib/new_relic/agent/new_relic_service.rb +14 -6
  20. data/lib/new_relic/agent/pipe_service.rb +1 -1
  21. data/lib/new_relic/agent/request_sampler.rb +10 -7
  22. data/lib/new_relic/agent/rules_engine.rb +5 -0
  23. data/lib/new_relic/agent/samplers/object_sampler.rb +1 -1
  24. data/lib/new_relic/agent/sql_sampler.rb +4 -2
  25. data/lib/new_relic/agent/stats_engine.rb +3 -0
  26. data/lib/new_relic/agent/stats_engine/gc_profiler.rb +17 -7
  27. data/lib/new_relic/agent/stats_engine/metric_stats.rb +5 -7
  28. data/lib/new_relic/agent/stats_engine/stats_hash.rb +2 -0
  29. data/lib/new_relic/agent/supported_versions.rb +247 -0
  30. data/lib/new_relic/agent/threading/backtrace_service.rb +1 -1
  31. data/lib/new_relic/agent/threading/thread_profile.rb +2 -1
  32. data/lib/new_relic/agent/transaction.rb +7 -6
  33. data/lib/new_relic/agent/transaction/developer_mode_sample_buffer.rb +11 -5
  34. data/lib/new_relic/agent/transaction/force_persist_sample_buffer.rb +3 -3
  35. data/lib/new_relic/agent/transaction/slowest_sample_buffer.rb +3 -3
  36. data/lib/new_relic/agent/transaction/transaction_sample_buffer.rb +23 -4
  37. data/lib/new_relic/agent/transaction/xray_sample_buffer.rb +4 -4
  38. data/lib/new_relic/agent/transaction_sampler.rb +14 -18
  39. data/lib/new_relic/agent/worker_loop.rb +1 -0
  40. data/lib/new_relic/control.rb +1 -0
  41. data/lib/new_relic/control/instance_methods.rb +0 -1
  42. data/lib/new_relic/helper.rb +1 -2
  43. data/lib/new_relic/language_support.rb +12 -2
  44. data/lib/new_relic/local_environment.rb +12 -11
  45. data/lib/new_relic/rack.rb +9 -0
  46. data/lib/new_relic/rack/agent_hooks.rb +6 -0
  47. data/lib/new_relic/rack/browser_monitoring.rb +9 -2
  48. data/lib/new_relic/rack/developer_mode.rb +15 -1
  49. data/lib/new_relic/rack/error_collector.rb +7 -0
  50. data/lib/new_relic/recipes.rb +2 -0
  51. data/lib/new_relic/transaction_sample.rb +39 -48
  52. data/lib/new_relic/version.rb +1 -1
  53. data/lib/tasks/install.rake +44 -2
  54. data/lib/tasks/versions.html.erb +31 -0
  55. data/lib/tasks/versions.rake +52 -0
  56. data/lib/tasks/versions.txt.erb +14 -0
  57. data/newrelic_rpm.gemspec +4 -2
  58. data/test/agent_helper.rb +21 -1
  59. data/test/environments/lib/environments/runner.rb +19 -5
  60. data/test/environments/norails/Gemfile +4 -1
  61. data/test/environments/rails21/Gemfile +4 -6
  62. data/test/environments/rails21/Rakefile +4 -0
  63. data/test/environments/rails21/config/database.yml +2 -7
  64. data/test/environments/rails22/Gemfile +6 -13
  65. data/test/environments/rails22/Rakefile +4 -0
  66. data/test/environments/rails22/config/database.yml +2 -7
  67. data/test/environments/rails22/config/environment.rb +1 -1
  68. data/test/environments/rails23/Gemfile +3 -4
  69. data/test/environments/rails23/Rakefile +4 -0
  70. data/test/environments/rails23/config/database.yml +2 -7
  71. data/test/environments/rails30/Gemfile +2 -4
  72. data/test/environments/rails30/Rakefile +2 -0
  73. data/test/environments/rails30/config/database.yml +2 -7
  74. data/test/environments/rails31/Gemfile +2 -4
  75. data/test/environments/rails31/Rakefile +2 -0
  76. data/test/environments/rails31/config/database.yml +2 -7
  77. data/test/environments/rails32/Gemfile +2 -5
  78. data/test/environments/rails32/Rakefile +2 -0
  79. data/test/environments/rails32/config/database.yml +1 -1
  80. data/test/environments/rails40/Gemfile +7 -4
  81. data/test/environments/rails40/Rakefile +2 -0
  82. data/test/environments/rails40/config/database.yml +2 -7
  83. data/test/helpers/runtime_detection.rb +17 -0
  84. data/test/multiverse/lib/multiverse/suite.rb +20 -4
  85. data/test/multiverse/suites/agent_only/key_transactions_test.rb +1 -1
  86. data/test/multiverse/suites/agent_only/marshaling_test.rb +1 -1
  87. data/test/multiverse/suites/agent_only/thread_profiling_test.rb +32 -7
  88. data/test/multiverse/suites/agent_only/xray_sessions_test.rb +1 -0
  89. data/test/multiverse/suites/config_file_loading/config_file_loading_test.rb +4 -3
  90. data/test/multiverse/suites/curb/curb_test.rb +8 -0
  91. data/test/multiverse/suites/excon/excon_test.rb +8 -0
  92. data/test/multiverse/suites/httpclient/httpclient_test.rb +8 -0
  93. data/test/multiverse/suites/net_http/net_http_test.rb +8 -0
  94. data/test/multiverse/suites/padrino/Envfile +3 -2
  95. data/test/multiverse/suites/rails/gc_instrumentation_test.rb +17 -8
  96. data/test/multiverse/suites/resque/Envfile +3 -3
  97. data/test/multiverse/suites/resque/instrumentation_test.rb +47 -5
  98. data/test/multiverse/suites/sequel/Envfile +0 -3
  99. data/test/multiverse/suites/sequel/database.rb +53 -0
  100. data/test/{new_relic/agent/instrumentation/sequel_test.rb → multiverse/suites/sequel/sequel_instrumentation_test.rb} +12 -53
  101. data/test/multiverse/suites/sequel/{sequel_test.rb → sequel_safety_test.rb} +2 -17
  102. data/test/multiverse/suites/sidekiq/sidekiq_instrumentation_test.rb +50 -5
  103. data/test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb +15 -2
  104. data/test/multiverse/suites/typhoeus/typhoeus_test.rb +8 -0
  105. data/test/new_relic/agent/agent/connect_test.rb +3 -2
  106. data/test/new_relic/agent/agent_test.rb +89 -82
  107. data/test/new_relic/agent/browser_monitoring_test.rb +44 -1
  108. data/test/new_relic/agent/error_collector_test.rb +17 -20
  109. data/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb +13 -10
  110. data/test/new_relic/agent/instrumentation/active_record_subscriber_test.rb +16 -1
  111. data/test/new_relic/agent/instrumentation/task_instrumentation_test.rb +2 -2
  112. data/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb +1 -1
  113. data/test/new_relic/agent/new_relic_service_test.rb +78 -9
  114. data/test/new_relic/agent/pipe_channel_manager_test.rb +7 -9
  115. data/test/new_relic/agent/pipe_service_test.rb +4 -4
  116. data/test/new_relic/agent/request_sampler_test.rb +2 -2
  117. data/test/new_relic/agent/stats_engine/gc_profiler_test.rb +15 -35
  118. data/test/new_relic/agent/stats_engine/metric_stats_test.rb +15 -7
  119. data/test/new_relic/agent/stats_engine_test.rb +4 -3
  120. data/test/new_relic/agent/threading/backtrace_service_test.rb +2 -0
  121. data/test/new_relic/agent/threading/thread_profile_test.rb +19 -0
  122. data/test/new_relic/agent/transaction/developer_mode_sample_buffer_test.rb +4 -4
  123. data/test/new_relic/agent/transaction/force_persist_sample_buffer_test.rb +1 -1
  124. data/test/new_relic/agent/transaction_sampler_test.rb +60 -45
  125. data/test/new_relic/fake_collector.rb +37 -2
  126. data/test/new_relic/http_client_test_cases.rb +26 -1
  127. data/test/new_relic/language_support_test.rb +12 -31
  128. data/test/new_relic/local_environment_test.rb +6 -2
  129. data/test/new_relic/multiverse_helpers.rb +2 -5
  130. data/test/new_relic/transaction_sample_test.rb +57 -36
  131. data/test/performance/suites/config.rb +76 -0
  132. data/test/rum/no_html_and_no_header.result.html +3 -0
  133. data/test/rum/no_html_and_no_header.source.html +3 -0
  134. data/test/script/ci.sh +0 -2
  135. data/test/test_helper.rb +5 -0
  136. metadata +43 -26
  137. metadata.gz.sig +0 -0
@@ -15,6 +15,10 @@ $LOAD_PATH.uniq!
15
15
  require 'rubygems'
16
16
  require 'rake'
17
17
 
18
+ Dir.glob(File.join(NEWRELIC_PLUGIN_DIR,'test/helpers/*.rb')).each do |helper|
19
+ require helper
20
+ end
21
+
18
22
  # We can speed things up in tests that don't need to load rails.
19
23
  # You can also run the tests in a mode without rails. Many tests
20
24
  # will be skipped.
@@ -148,6 +152,7 @@ def fixture_tcp_socket( response )
148
152
  socket = stub("socket") do
149
153
  stubs(:closed?).returns(false)
150
154
  stubs(:close)
155
+ stubs(:setsockopt)
151
156
 
152
157
  # Simulate a bunch of socket-ey stuff since Mocha doesn't really
153
158
  # provide any other way to do it
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: 3.6.8.168
4
+ version: 3.6.9.171
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -40,7 +40,7 @@ cert_chain:
40
40
  cHUySWFQWE92bTNUOEc0TzZxWnZobkxoL1VpZW4rK0RqOGVGQmVjVFBvTThw
41
41
  VmpLM3BoNQpuL0V3dVpDY0U2Z2h0Q0NNCi0tLS0tRU5EIENFUlRJRklDQVRF
42
42
  LS0tLS0K
43
- date: 2013-10-19 00:00:00.000000000 Z
43
+ date: 2013-11-07 00:00:00.000000000 Z
44
44
  dependencies:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: rake
@@ -191,33 +191,33 @@ dependencies:
191
191
  requirement: !ruby/object:Gem::Requirement
192
192
  none: false
193
193
  requirements:
194
- - - ! '>='
194
+ - - ~>
195
195
  - !ruby/object:Gem::Version
196
- version: '0'
196
+ version: 1.8.3
197
197
  type: :development
198
198
  prerelease: false
199
199
  version_requirements: !ruby/object:Gem::Requirement
200
200
  none: false
201
201
  requirements:
202
- - - ! '>='
202
+ - - ~>
203
203
  - !ruby/object:Gem::Version
204
- version: '0'
204
+ version: 1.8.3
205
205
  - !ruby/object:Gem::Dependency
206
206
  name: guard-test
207
207
  requirement: !ruby/object:Gem::Requirement
208
208
  none: false
209
209
  requirements:
210
- - - ! '>='
210
+ - - ~>
211
211
  - !ruby/object:Gem::Version
212
- version: '0'
212
+ version: 1.0.0
213
213
  type: :development
214
214
  prerelease: false
215
215
  version_requirements: !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements:
218
- - - ! '>='
218
+ - - ~>
219
219
  - !ruby/object:Gem::Version
220
- version: '0'
220
+ version: 1.0.0
221
221
  - !ruby/object:Gem::Dependency
222
222
  name: rb-fsevent
223
223
  requirement: !ruby/object:Gem::Requirement
@@ -264,6 +264,7 @@ files:
264
264
  - .gitignore
265
265
  - .project
266
266
  - .travis.yml
267
+ - .yardopts
267
268
  - CHANGELOG
268
269
  - GUIDELINES_FOR_CONTRIBUTING.md
269
270
  - Gemfile
@@ -390,6 +391,7 @@ files:
390
391
  - lib/new_relic/agent/stats_engine/samplers.rb
391
392
  - lib/new_relic/agent/stats_engine/stats_hash.rb
392
393
  - lib/new_relic/agent/stats_engine/transactions.rb
394
+ - lib/new_relic/agent/supported_versions.rb
393
395
  - lib/new_relic/agent/system_info.rb
394
396
  - lib/new_relic/agent/threading/agent_thread.rb
395
397
  - lib/new_relic/agent/threading/backtrace_node.rb
@@ -460,6 +462,9 @@ files:
460
462
  - lib/tasks/all.rb
461
463
  - lib/tasks/install.rake
462
464
  - lib/tasks/tests.rake
465
+ - lib/tasks/versions.html.erb
466
+ - lib/tasks/versions.rake
467
+ - lib/tasks/versions.txt.erb
463
468
  - newrelic.yml
464
469
  - newrelic_rpm.gemspec
465
470
  - recipes/newrelic.rb
@@ -540,6 +545,7 @@ files:
540
545
  - test/environments/rails40/config/environment.rb
541
546
  - test/environments/rails40/db/schema.rb
542
547
  - test/fixtures/proc_cpuinfo.txt
548
+ - test/helpers/runtime_detection.rb
543
549
  - test/intentional_fail.rb
544
550
  - test/multiverse/.gitignore
545
551
  - test/multiverse/README.md
@@ -620,7 +626,9 @@ files:
620
626
  - test/multiverse/suites/resque/instrumentation_test.rb
621
627
  - test/multiverse/suites/sequel/Envfile
622
628
  - test/multiverse/suites/sequel/config/newrelic.yml
623
- - test/multiverse/suites/sequel/sequel_test.rb
629
+ - test/multiverse/suites/sequel/database.rb
630
+ - test/multiverse/suites/sequel/sequel_instrumentation_test.rb
631
+ - test/multiverse/suites/sequel/sequel_safety_test.rb
624
632
  - test/multiverse/suites/sidekiq/Envfile
625
633
  - test/multiverse/suites/sidekiq/config/newrelic.yml
626
634
  - test/multiverse/suites/sidekiq/log/.gitkeep
@@ -691,7 +699,6 @@ files:
691
699
  - test/new_relic/agent/instrumentation/net_instrumentation_test.rb
692
700
  - test/new_relic/agent/instrumentation/queue_time_test.rb
693
701
  - test/new_relic/agent/instrumentation/rack_test.rb
694
- - test/new_relic/agent/instrumentation/sequel_test.rb
695
702
  - test/new_relic/agent/instrumentation/sinatra/transaction_namer_test.rb
696
703
  - test/new_relic/agent/instrumentation/sinatra_test.rb
697
704
  - test/new_relic/agent/instrumentation/task_instrumentation_test.rb
@@ -797,6 +804,7 @@ files:
797
804
  - test/performance/script/baselines
798
805
  - test/performance/script/mega-runner
799
806
  - test/performance/script/runner
807
+ - test/performance/suites/config.rb
800
808
  - test/performance/suites/rum_autoinsertion.rb
801
809
  - test/performance/suites/startup.rb
802
810
  - test/performance/suites/thread_profiling.rb
@@ -823,6 +831,8 @@ files:
823
831
  - test/rum/no_body.source.html
824
832
  - test/rum/no_header.result.html
825
833
  - test/rum/no_header.source.html
834
+ - test/rum/no_html_and_no_header.result.html
835
+ - test/rum/no_html_and_no_header.source.html
826
836
  - test/rum/no_start_header.result.html
827
837
  - test/rum/no_start_header.source.html
828
838
  - test/rum/script1.result.html
@@ -924,20 +934,27 @@ files:
924
934
  - lib/new_relic/build.rb
925
935
  homepage: http://www.github.com/newrelic/rpm
926
936
  licenses: []
927
- post_install_message: ! "# New Relic Ruby Agent Release Notes #\n\n## v3.6.8 ##\n\n*
928
- X-Ray Sessions support\n\n X-Ray Sessions provide more targeted transaction trace
929
- samples and thread\n profiling for web transactions. For full details see our X-Ray
930
- sessions\n documentation at https://newrelic.com/docs/site/xray-sessions.\n\n*
931
- CPU metrics re-enabled for JRuby >= 1.7.0\n\n To work around a JRuby bug, the Ruby
932
- agent stopped gathering CPU metrics on\n that platform. With the bug fixed, the
933
- agent can gather those metrics again.\n Thanks Bram de Vries for the contribution!\n\n*
934
- Missing Resque transaction traces (3.6.8.168)\n\n A bug in 3.6.8.164 prevented
935
- transaction traces in Resque jobs from being\n communicated back to New Relic.
936
- 3.6.8.168 fixes this.\n\n* Retry on initial connect (3.6.8.168)\n\n Failure to
937
- contact New Relic on agent start-up would not properly retry. This\n has been fixed.\n\n*
938
- Fix potential memory leak on failure to send to New Relic (3.6.8.168)\n\n 3.6.8.164
939
- introduced a potential memory leak when transmission of some kinds\n of data to
940
- New Relic servers failed. 3.6.8.168 fixes this.\n\nSee https://github.com/newrelic/rpm/blob/master/CHANGELOG
937
+ post_install_message: ! "# New Relic Ruby Agent Release Notes #\n\n## v3.6.9 ##\n\n*
938
+ Experimental Rubinius 2.x support\n\n The agent is now being tested against the
939
+ latest version of Rubinius. While\n support is still considered experimental, you
940
+ can track the progress at\n http://docs.newrelic.com/docs/ruby/rubinius for up
941
+ to date status.\n\n* Capture arguments for Resque and Sidekiq jobs\n\n The agent
942
+ can optionally record arguments for your Resque and Sidekiq jobs on\n transaction
943
+ traces and traced errors. This is disabled by default, but may be\n enabled by
944
+ setting resque.capture_params or sidekiq.capture_params.\n\n Thanks to Juan Ignacio
945
+ Pumarino, Ken Mayer, Paul Henry, and Eric Saxby for\n their help with this feature!\n\n*
946
+ Supported versions rake task and documentation\n\n We've improved our documentation
947
+ for what Ruby and gem versions we support.\n Run `rake newrelic:supported_versions`
948
+ or see the latest agent's versions at\n https://docs.newrelic.com/docs/ruby/supported-frameworks.\n\n*
949
+ ActiveRecord 4.0 explain plans for JRuby and Rubinius\n\n The agent's ActiveRecord
950
+ 4.0 instrumentation could not gather SQL explain\n plans on JRuby by default because
951
+ of a dependency on ObjectSpace, which isn't\n avialable by default. This has been
952
+ fixed.\n\n* Fix for Curb http_put_with_newrelic\n\n A bug in the agent caused PUT
953
+ calls in the Curb gem to crash. This has been\n fixed. Thanks to Michael D'Auria
954
+ and Kirk Diggler for the contributions!\n\n* Fix for head position on RUM injection\n\n
955
+ \ Certain unusual HTML documents resulted in browser monitoring injecting\n incorrect
956
+ content. Thanks Alex McHale for the contribution!\n\n* Specify the Content-Type
957
+ header in developer mode\n\n Thanks Jared Ning for the contribution!\n\nSee https://github.com/newrelic/rpm/blob/master/CHANGELOG
941
958
  for a full list of\nchanges.\n"
942
959
  rdoc_options:
943
960
  - --line-numbers
metadata.gz.sig CHANGED
Binary file