newrelic_rpm 6.12.0.367 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/CHANGELOG.md +269 -8
  4. data/CONTRIBUTING.md +54 -11
  5. data/README.md +40 -16
  6. data/ROADMAP.md +24 -0
  7. data/lib/new_relic/agent.rb +3 -10
  8. data/lib/new_relic/agent/agent.rb +6 -4
  9. data/lib/new_relic/agent/audit_logger.rb +10 -0
  10. data/lib/new_relic/agent/autostart.rb +1 -2
  11. data/lib/new_relic/agent/configuration/default_source.rb +294 -102
  12. data/lib/new_relic/agent/configuration/manager.rb +2 -2
  13. data/lib/new_relic/agent/database_adapter.rb +33 -0
  14. data/lib/new_relic/agent/datastores/redis.rb +0 -4
  15. data/lib/new_relic/agent/distributed_tracing.rb +0 -66
  16. data/lib/new_relic/agent/distributed_tracing/cross_app_tracing.rb +2 -2
  17. data/lib/new_relic/agent/http_clients/uri_util.rb +8 -8
  18. data/lib/new_relic/agent/instrumentation/action_view_subscriber.rb +4 -5
  19. data/lib/new_relic/agent/instrumentation/active_record_helper.rb +21 -68
  20. data/lib/new_relic/agent/instrumentation/active_record_notifications.rb +0 -16
  21. data/lib/new_relic/agent/instrumentation/active_record_prepend.rb +23 -57
  22. data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +0 -15
  23. data/lib/new_relic/agent/instrumentation/bunny.rb +10 -196
  24. data/lib/new_relic/agent/instrumentation/bunny/chain.rb +45 -0
  25. data/lib/new_relic/agent/instrumentation/bunny/instrumentation.rb +152 -0
  26. data/lib/new_relic/agent/instrumentation/bunny/prepend.rb +35 -0
  27. data/lib/new_relic/agent/instrumentation/curb.rb +9 -259
  28. data/lib/new_relic/agent/instrumentation/curb/chain.rb +93 -0
  29. data/lib/new_relic/agent/instrumentation/curb/instrumentation.rb +222 -0
  30. data/lib/new_relic/agent/instrumentation/curb/prepend.rb +63 -0
  31. data/lib/new_relic/agent/instrumentation/delayed_job/chain.rb +38 -0
  32. data/lib/new_relic/agent/instrumentation/delayed_job/instrumentation.rb +53 -0
  33. data/lib/new_relic/agent/instrumentation/delayed_job/prepend.rb +34 -0
  34. data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +8 -84
  35. data/lib/new_relic/agent/instrumentation/excon.rb +2 -1
  36. data/lib/new_relic/agent/instrumentation/grape.rb +13 -113
  37. data/lib/new_relic/agent/instrumentation/grape/chain.rb +25 -0
  38. data/lib/new_relic/agent/instrumentation/grape/instrumentation.rb +100 -0
  39. data/lib/new_relic/agent/instrumentation/grape/prepend.rb +17 -0
  40. data/lib/new_relic/agent/instrumentation/httpclient.rb +8 -30
  41. data/lib/new_relic/agent/instrumentation/httpclient/chain.rb +25 -0
  42. data/lib/new_relic/agent/instrumentation/httpclient/instrumentation.rb +38 -0
  43. data/lib/new_relic/agent/instrumentation/httpclient/prepend.rb +17 -0
  44. data/lib/new_relic/agent/instrumentation/httprb.rb +29 -0
  45. data/lib/new_relic/agent/instrumentation/httprb/chain.rb +22 -0
  46. data/lib/new_relic/agent/instrumentation/httprb/instrumentation.rb +30 -0
  47. data/lib/new_relic/agent/instrumentation/httprb/prepend.rb +15 -0
  48. data/lib/new_relic/agent/instrumentation/memcache.rb +54 -69
  49. data/lib/new_relic/agent/instrumentation/memcache/chain.rb +16 -0
  50. data/lib/new_relic/agent/instrumentation/memcache/dalli.rb +38 -121
  51. data/lib/new_relic/agent/instrumentation/memcache/helper.rb +56 -0
  52. data/lib/new_relic/agent/instrumentation/memcache/instrumentation.rb +88 -0
  53. data/lib/new_relic/agent/instrumentation/memcache/prepend.rb +88 -0
  54. data/lib/new_relic/agent/instrumentation/middleware_proxy.rb +4 -10
  55. data/lib/new_relic/agent/instrumentation/mongo.rb +7 -0
  56. data/lib/new_relic/agent/instrumentation/net_http.rb +39 -0
  57. data/lib/new_relic/agent/instrumentation/net_http/chain.rb +25 -0
  58. data/lib/new_relic/agent/instrumentation/net_http/instrumentation.rb +40 -0
  59. data/lib/new_relic/agent/instrumentation/net_http/prepend.rb +21 -0
  60. data/lib/new_relic/agent/instrumentation/notifications_subscriber.rb +1 -1
  61. data/lib/new_relic/agent/instrumentation/padrino.rb +18 -75
  62. data/lib/new_relic/agent/instrumentation/padrino/chain.rb +34 -0
  63. data/lib/new_relic/agent/instrumentation/padrino/instrumentation.rb +27 -0
  64. data/lib/new_relic/agent/instrumentation/padrino/prepend.rb +20 -0
  65. data/lib/new_relic/agent/instrumentation/rack.rb +29 -160
  66. data/lib/new_relic/agent/instrumentation/rack/chain.rb +57 -0
  67. data/lib/new_relic/agent/instrumentation/rack/helpers.rb +32 -0
  68. data/lib/new_relic/agent/instrumentation/rack/instrumentation.rb +73 -0
  69. data/lib/new_relic/agent/instrumentation/rack/prepend.rb +36 -0
  70. data/lib/new_relic/agent/instrumentation/rake.rb +13 -187
  71. data/lib/new_relic/agent/instrumentation/rake/chain.rb +25 -0
  72. data/lib/new_relic/agent/instrumentation/rake/instrumentation.rb +144 -0
  73. data/lib/new_relic/agent/instrumentation/rake/prepend.rb +14 -0
  74. data/lib/new_relic/agent/instrumentation/redis.rb +10 -188
  75. data/lib/new_relic/agent/instrumentation/redis/chain.rb +34 -0
  76. data/lib/new_relic/agent/instrumentation/redis/instrumentation.rb +65 -0
  77. data/lib/new_relic/agent/instrumentation/redis/prepend.rb +24 -0
  78. data/lib/new_relic/agent/instrumentation/resque.rb +8 -28
  79. data/lib/new_relic/agent/instrumentation/resque/chain.rb +22 -0
  80. data/lib/new_relic/agent/instrumentation/resque/instrumentation.rb +33 -0
  81. data/lib/new_relic/agent/instrumentation/resque/prepend.rb +16 -0
  82. data/lib/new_relic/agent/instrumentation/sidekiq.rb +1 -1
  83. data/lib/new_relic/agent/instrumentation/sinatra.rb +20 -198
  84. data/lib/new_relic/agent/instrumentation/sinatra/chain.rb +55 -0
  85. data/lib/new_relic/agent/instrumentation/sinatra/ignorer.rb +29 -34
  86. data/lib/new_relic/agent/instrumentation/sinatra/instrumentation.rb +118 -0
  87. data/lib/new_relic/agent/instrumentation/sinatra/prepend.rb +33 -0
  88. data/lib/new_relic/agent/instrumentation/typhoeus.rb +10 -89
  89. data/lib/new_relic/agent/instrumentation/typhoeus/chain.rb +22 -0
  90. data/lib/new_relic/agent/instrumentation/typhoeus/instrumentation.rb +82 -0
  91. data/lib/new_relic/agent/instrumentation/typhoeus/prepend.rb +14 -0
  92. data/lib/new_relic/agent/method_tracer.rb +6 -16
  93. data/lib/new_relic/agent/new_relic_service.rb +19 -5
  94. data/lib/new_relic/agent/samplers/memory_sampler.rb +1 -1
  95. data/lib/new_relic/agent/span_event_primitive.rb +10 -8
  96. data/lib/new_relic/agent/sql_sampler.rb +1 -1
  97. data/lib/new_relic/agent/stats_engine/gc_profiler.rb +1 -1
  98. data/lib/new_relic/agent/transaction.rb +1 -4
  99. data/lib/new_relic/agent/transaction/abstract_segment.rb +1 -1
  100. data/lib/new_relic/agent/transaction/distributed_tracer.rb +12 -6
  101. data/lib/new_relic/agent/transaction/external_request_segment.rb +2 -2
  102. data/lib/new_relic/agent/transaction/message_broker_segment.rb +1 -0
  103. data/lib/new_relic/agent/transaction/segment.rb +9 -5
  104. data/lib/new_relic/agent/vm/mri_vm.rb +6 -4
  105. data/lib/new_relic/cli/commands/deployments.rb +0 -1
  106. data/lib/new_relic/constants.rb +4 -0
  107. data/lib/new_relic/control/frameworks/rails.rb +11 -9
  108. data/lib/new_relic/control/instance_methods.rb +1 -0
  109. data/lib/new_relic/dependency_detection.rb +119 -9
  110. data/lib/new_relic/environment_report.rb +1 -7
  111. data/lib/new_relic/noticed_error.rb +1 -5
  112. data/lib/new_relic/supportability_helper.rb +3 -2
  113. data/lib/new_relic/version.rb +2 -2
  114. data/lib/tasks/multiverse.rb +9 -0
  115. data/newrelic_rpm.gemspec +2 -3
  116. data/test/agent_helper.rb +7 -0
  117. metadata +55 -12
  118. data/.travis.yml +0 -240
  119. data/CODE_OF_CONDUCT.md +0 -46
  120. data/cert/cacert.pem +0 -1177
  121. data/lib/new_relic/agent/instrumentation/http.rb +0 -49
  122. data/lib/new_relic/agent/instrumentation/net.rb +0 -87
  123. data/lib/new_relic/metrics.rb +0 -13
@@ -10,8 +10,8 @@ module NewRelic
10
10
  parts.compact.join('.')
11
11
  end
12
12
 
13
- MAJOR = 6
14
- MINOR = 12
13
+ MAJOR = 7
14
+ MINOR = 0
15
15
  TINY = 0
16
16
 
17
17
  begin
@@ -63,6 +63,14 @@ namespace :test do
63
63
  end
64
64
  end
65
65
 
66
+ def remove_generated_gemfile_lockfiles
67
+ file_path = File.expand_path "test/environments"
68
+ Dir.glob(File.join file_path, "**", "Gemfile.lock").each do |fn|
69
+ puts "Removing #{fn.gsub(file_path,'.../environments')}"
70
+ FileUtils.rm fn
71
+ end
72
+ end
73
+
66
74
  task :env do
67
75
  # ENV['SUITES_DIRECTORY'] = File.expand_path('../../test/multiverse/suites', __FILE__)
68
76
  require File.expand_path('../../../test/multiverse/lib/multiverse', __FILE__)
@@ -71,6 +79,7 @@ namespace :test do
71
79
  task :clobber do
72
80
  remove_local_multiverse_databases
73
81
  remove_generated_gemfiles
82
+ remove_generated_gemfile_lockfiles
74
83
  end
75
84
 
76
85
  desc "Clean cached gemfiles from Bundler.bundle_path"
data/newrelic_rpm.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.version = NewRelic::VERSION::STRING
11
11
  s.required_ruby_version = '>= 2.0.0'
12
12
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
13
- s.authors = [ "Rachel Klein", "Tanna McClure", "Michael Lang" ]
13
+ s.authors = [ "Aaron Huntsman", "Tanna McClure", "Michael Lang" ]
14
14
  s.date = Time.now.strftime('%Y-%m-%d')
15
15
  s.licenses = ['Apache-2.0']
16
16
  s.description = <<-EOS
@@ -28,7 +28,6 @@ EOS
28
28
  "LICENSE",
29
29
  "README.md",
30
30
  "CONTRIBUTING.md",
31
- "CODE_OF_CONDUCT.md",
32
31
  "newrelic.yml"
33
32
  ]
34
33
 
@@ -40,7 +39,7 @@ EOS
40
39
  "homepage_uri" => "https://newrelic.com/ruby",
41
40
  }
42
41
 
43
- file_list = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|infinite_tracing)/(?!agent_helper.rb)}) }
42
+ file_list = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|infinite_tracing|\.github)/(?!agent_helper.rb)}) }
44
43
  build_file_path = 'lib/new_relic/build.rb'
45
44
  file_list << build_file_path if File.exist?(build_file_path)
46
45
  s.files = file_list
data/test/agent_helper.rb CHANGED
@@ -133,6 +133,12 @@ def assert_equal_unordered left, right
133
133
  left.each { |element| assert_includes(right, element) }
134
134
  end
135
135
 
136
+ def assert_log_contains(log, message)
137
+ lines = log.array
138
+ failure_message = "Did not find '#{message}' in log. Log contained:\n#{lines.join('')}"
139
+ assert (lines.any? { |line| line.match(message) }), failure_message
140
+ end
141
+
136
142
  def assert_audit_log_contains audit_log_contents, needle
137
143
  # Original request bodies dumped to the log have symbol keys, but once
138
144
  # they go through a dump/load, they're strings again, so we strip
@@ -412,6 +418,7 @@ end
412
418
  # build 'em as appropriate so we can test 'em
413
419
  def build_deferred_error_attributes segment
414
420
  return unless segment.noticed_error
421
+ return if segment.noticed_error_attributes.frozen?
415
422
  segment.noticed_error.build_error_attributes
416
423
  end
417
424
 
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.12.0.367
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Rachel Klein
7
+ - Aaron Huntsman
8
8
  - Tanna McClure
9
9
  - Michael Lang
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-07-14 00:00:00.000000000 Z
13
+ date: 2021-04-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -199,27 +199,24 @@ extra_rdoc_files:
199
199
  - LICENSE
200
200
  - README.md
201
201
  - CONTRIBUTING.md
202
- - CODE_OF_CONDUCT.md
203
202
  - newrelic.yml
204
203
  files:
205
204
  - ".gitignore"
206
205
  - ".project"
207
- - ".travis.yml"
208
206
  - ".yardopts"
209
207
  - CHANGELOG.md
210
- - CODE_OF_CONDUCT.md
211
208
  - CONTRIBUTING.md
212
209
  - Gemfile
213
210
  - Guardfile
214
211
  - LICENSE
215
212
  - README.md
213
+ - ROADMAP.md
216
214
  - Rakefile
217
215
  - THIRD_PARTY_NOTICES.md
218
216
  - bin/mongrel_rpm
219
217
  - bin/newrelic
220
218
  - bin/newrelic_cmd
221
219
  - bin/nrdebug
222
- - cert/cacert.pem
223
220
  - config.dot
224
221
  - config/database.yml
225
222
  - init.rb
@@ -257,6 +254,7 @@ files:
257
254
  - lib/new_relic/agent/database/obfuscation_helpers.rb
258
255
  - lib/new_relic/agent/database/obfuscator.rb
259
256
  - lib/new_relic/agent/database/postgres_explain_obfuscator.rb
257
+ - lib/new_relic/agent/database_adapter.rb
260
258
  - lib/new_relic/agent/datastores.rb
261
259
  - lib/new_relic/agent/datastores/metric_helper.rb
262
260
  - lib/new_relic/agent/datastores/mongo.rb
@@ -312,31 +310,63 @@ files:
312
310
  - lib/new_relic/agent/instrumentation/acts_as_solr.rb
313
311
  - lib/new_relic/agent/instrumentation/authlogic.rb
314
312
  - lib/new_relic/agent/instrumentation/bunny.rb
313
+ - lib/new_relic/agent/instrumentation/bunny/chain.rb
314
+ - lib/new_relic/agent/instrumentation/bunny/instrumentation.rb
315
+ - lib/new_relic/agent/instrumentation/bunny/prepend.rb
315
316
  - lib/new_relic/agent/instrumentation/controller_instrumentation.rb
316
317
  - lib/new_relic/agent/instrumentation/curb.rb
318
+ - lib/new_relic/agent/instrumentation/curb/chain.rb
319
+ - lib/new_relic/agent/instrumentation/curb/instrumentation.rb
320
+ - lib/new_relic/agent/instrumentation/curb/prepend.rb
317
321
  - lib/new_relic/agent/instrumentation/data_mapper.rb
322
+ - lib/new_relic/agent/instrumentation/delayed_job/chain.rb
323
+ - lib/new_relic/agent/instrumentation/delayed_job/instrumentation.rb
324
+ - lib/new_relic/agent/instrumentation/delayed_job/prepend.rb
318
325
  - lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb
319
326
  - lib/new_relic/agent/instrumentation/excon.rb
320
327
  - lib/new_relic/agent/instrumentation/excon/connection.rb
321
328
  - lib/new_relic/agent/instrumentation/excon/middleware.rb
322
329
  - lib/new_relic/agent/instrumentation/grape.rb
323
- - lib/new_relic/agent/instrumentation/http.rb
330
+ - lib/new_relic/agent/instrumentation/grape/chain.rb
331
+ - lib/new_relic/agent/instrumentation/grape/instrumentation.rb
332
+ - lib/new_relic/agent/instrumentation/grape/prepend.rb
324
333
  - lib/new_relic/agent/instrumentation/httpclient.rb
334
+ - lib/new_relic/agent/instrumentation/httpclient/chain.rb
335
+ - lib/new_relic/agent/instrumentation/httpclient/instrumentation.rb
336
+ - lib/new_relic/agent/instrumentation/httpclient/prepend.rb
337
+ - lib/new_relic/agent/instrumentation/httprb.rb
338
+ - lib/new_relic/agent/instrumentation/httprb/chain.rb
339
+ - lib/new_relic/agent/instrumentation/httprb/instrumentation.rb
340
+ - lib/new_relic/agent/instrumentation/httprb/prepend.rb
325
341
  - lib/new_relic/agent/instrumentation/ignore_actions.rb
326
342
  - lib/new_relic/agent/instrumentation/memcache.rb
343
+ - lib/new_relic/agent/instrumentation/memcache/chain.rb
327
344
  - lib/new_relic/agent/instrumentation/memcache/dalli.rb
345
+ - lib/new_relic/agent/instrumentation/memcache/helper.rb
346
+ - lib/new_relic/agent/instrumentation/memcache/instrumentation.rb
347
+ - lib/new_relic/agent/instrumentation/memcache/prepend.rb
328
348
  - lib/new_relic/agent/instrumentation/merb/controller.rb
329
349
  - lib/new_relic/agent/instrumentation/merb/errors.rb
330
350
  - lib/new_relic/agent/instrumentation/middleware_proxy.rb
331
351
  - lib/new_relic/agent/instrumentation/middleware_tracing.rb
332
352
  - lib/new_relic/agent/instrumentation/mongo.rb
333
353
  - lib/new_relic/agent/instrumentation/mongodb_command_subscriber.rb
334
- - lib/new_relic/agent/instrumentation/net.rb
354
+ - lib/new_relic/agent/instrumentation/net_http.rb
355
+ - lib/new_relic/agent/instrumentation/net_http/chain.rb
356
+ - lib/new_relic/agent/instrumentation/net_http/instrumentation.rb
357
+ - lib/new_relic/agent/instrumentation/net_http/prepend.rb
335
358
  - lib/new_relic/agent/instrumentation/notifications_subscriber.rb
336
359
  - lib/new_relic/agent/instrumentation/padrino.rb
360
+ - lib/new_relic/agent/instrumentation/padrino/chain.rb
361
+ - lib/new_relic/agent/instrumentation/padrino/instrumentation.rb
362
+ - lib/new_relic/agent/instrumentation/padrino/prepend.rb
337
363
  - lib/new_relic/agent/instrumentation/passenger_instrumentation.rb
338
364
  - lib/new_relic/agent/instrumentation/queue_time.rb
339
365
  - lib/new_relic/agent/instrumentation/rack.rb
366
+ - lib/new_relic/agent/instrumentation/rack/chain.rb
367
+ - lib/new_relic/agent/instrumentation/rack/helpers.rb
368
+ - lib/new_relic/agent/instrumentation/rack/instrumentation.rb
369
+ - lib/new_relic/agent/instrumentation/rack/prepend.rb
340
370
  - lib/new_relic/agent/instrumentation/rails/action_controller.rb
341
371
  - lib/new_relic/agent/instrumentation/rails/action_web_service.rb
342
372
  - lib/new_relic/agent/instrumentation/rails3/action_controller.rb
@@ -346,16 +376,31 @@ files:
346
376
  - lib/new_relic/agent/instrumentation/rails_notifications/action_view.rb
347
377
  - lib/new_relic/agent/instrumentation/rainbows_instrumentation.rb
348
378
  - lib/new_relic/agent/instrumentation/rake.rb
379
+ - lib/new_relic/agent/instrumentation/rake/chain.rb
380
+ - lib/new_relic/agent/instrumentation/rake/instrumentation.rb
381
+ - lib/new_relic/agent/instrumentation/rake/prepend.rb
349
382
  - lib/new_relic/agent/instrumentation/redis.rb
383
+ - lib/new_relic/agent/instrumentation/redis/chain.rb
384
+ - lib/new_relic/agent/instrumentation/redis/instrumentation.rb
385
+ - lib/new_relic/agent/instrumentation/redis/prepend.rb
350
386
  - lib/new_relic/agent/instrumentation/resque.rb
387
+ - lib/new_relic/agent/instrumentation/resque/chain.rb
388
+ - lib/new_relic/agent/instrumentation/resque/instrumentation.rb
389
+ - lib/new_relic/agent/instrumentation/resque/prepend.rb
351
390
  - lib/new_relic/agent/instrumentation/sequel.rb
352
391
  - lib/new_relic/agent/instrumentation/sequel_helper.rb
353
392
  - lib/new_relic/agent/instrumentation/sidekiq.rb
354
393
  - lib/new_relic/agent/instrumentation/sinatra.rb
394
+ - lib/new_relic/agent/instrumentation/sinatra/chain.rb
355
395
  - lib/new_relic/agent/instrumentation/sinatra/ignorer.rb
396
+ - lib/new_relic/agent/instrumentation/sinatra/instrumentation.rb
397
+ - lib/new_relic/agent/instrumentation/sinatra/prepend.rb
356
398
  - lib/new_relic/agent/instrumentation/sinatra/transaction_namer.rb
357
399
  - lib/new_relic/agent/instrumentation/sunspot.rb
358
400
  - lib/new_relic/agent/instrumentation/typhoeus.rb
401
+ - lib/new_relic/agent/instrumentation/typhoeus/chain.rb
402
+ - lib/new_relic/agent/instrumentation/typhoeus/instrumentation.rb
403
+ - lib/new_relic/agent/instrumentation/typhoeus/prepend.rb
359
404
  - lib/new_relic/agent/internal_agent_error.rb
360
405
  - lib/new_relic/agent/javascript_instrumentor.rb
361
406
  - lib/new_relic/agent/log_once.rb
@@ -446,7 +491,6 @@ files:
446
491
  - lib/new_relic/agent/vm/mri_vm.rb
447
492
  - lib/new_relic/agent/vm/snapshot.rb
448
493
  - lib/new_relic/agent/worker_loop.rb
449
- - lib/new_relic/build.rb
450
494
  - lib/new_relic/cli/command.rb
451
495
  - lib/new_relic/cli/commands/deployments.rb
452
496
  - lib/new_relic/cli/commands/install.rb
@@ -476,7 +520,6 @@ files:
476
520
  - lib/new_relic/local_environment.rb
477
521
  - lib/new_relic/metric_data.rb
478
522
  - lib/new_relic/metric_spec.rb
479
- - lib/new_relic/metrics.rb
480
523
  - lib/new_relic/noticed_error.rb
481
524
  - lib/new_relic/rack.rb
482
525
  - lib/new_relic/rack/agent_hooks.rb
@@ -527,7 +570,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
527
570
  - !ruby/object:Gem::Version
528
571
  version: 1.3.1
529
572
  requirements: []
530
- rubygems_version: 3.1.3
573
+ rubygems_version: 3.1.6
531
574
  signing_key:
532
575
  specification_version: 4
533
576
  summary: New Relic Ruby Agent
data/.travis.yml DELETED
@@ -1,240 +0,0 @@
1
- services:
2
- - mysql
3
- - redis-server
4
- - memcached
5
- - rabbitmq
6
-
7
- notifications:
8
- slack:
9
- secure: Ziq6vzXmc1S+SZnJF7DyjprRgzZKvVK5TXtnNJAoH4EFchziCqko+75hMxDZ/6Y2kShcijgbzZSkIIVSiuYyx0Jgxdsmwed7yrs91uv2WsUw2/l+taOTBIAMa/m9PZppsRqmkywxWeeTPL6cf65Vg3PYRuqzj83nczUFJo4UNrA=
10
-
11
- language: ruby
12
-
13
- dist: precise
14
- sudo: required
15
- jdk:
16
- - oraclejdk8
17
-
18
- before_install:
19
- # RUBY-2072 Prevent Travis setup failure before our test even starts
20
- - jdk_switcher use oraclejdk8
21
- - sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3.list
22
- - gem --version
23
- - "echo 'gem: --no-rdoc --no-ri --no-document' > ~/.gemrc"
24
- - ./test/script/before_install/conditionally_upgrade_rubygems.sh
25
- - ./test/script/before_install/gemstash_mirror.sh
26
- - "echo GEMSTASH_MIRROR: $GEMSTASH_MIRROR"
27
- - bundle --version
28
-
29
- install: bundle install --jobs 4
30
-
31
- addons:
32
- apt:
33
- update: true
34
- packages:
35
- - libgmp3-dev
36
- - openssl
37
- - libssl-dev
38
- - build-essential
39
- - haveged
40
-
41
- before_script: ./test/script/before_script/install_mongodb.sh
42
-
43
- script: ./test/script/ci.sh
44
-
45
- branches:
46
- only:
47
- - main
48
- - dev
49
- - release
50
-
51
- rvm:
52
- # Run slowest builds first to try and optimize overall cycle time.
53
- - jruby-9.2.6.0
54
- - 2.7.0
55
- - 2.6.1
56
- - 2.5.3
57
- - 2.4.2
58
- - 2.3.5
59
- - 2.2.8
60
- - 2.1.10
61
- - 2.0.0-p648
62
-
63
- jdk:
64
- - oraclejdk8
65
-
66
- env:
67
- global:
68
- - BUNDLE_PATH=/home/travis/bundle
69
- - MONGODB=2.6.11
70
- - JAVA_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xmx1024m -XX:CICompilerCount=1 -Xshare:auto"
71
- - JRUBY_OPTS="-Xcompile.invokedynamic=false -J-Djruby.compile.mode=OFF"
72
- - RBXOPT="-Xcompiler.no_rbc -Xint"
73
- - SERIALIZE=1
74
- - TESTOPTS="-v"
75
- - VERBOSE = 1
76
- matrix:
77
- - TYPE=UNIT ENVIRONMENT=rails30
78
- - TYPE=UNIT ENVIRONMENT=rails31
79
- - TYPE=UNIT ENVIRONMENT=rails32
80
- - TYPE=UNIT ENVIRONMENT=rails40
81
- - TYPE=UNIT ENVIRONMENT=rails41
82
- - TYPE=UNIT ENVIRONMENT=rails42
83
- - TYPE=UNIT ENVIRONMENT=rails50
84
- - TYPE=UNIT ENVIRONMENT=rails51
85
- - TYPE=UNIT ENVIRONMENT=rails52
86
- - TYPE=UNIT ENVIRONMENT=rails60
87
- - TYPE=UNIT ENVIRONMENT=norails
88
- - TYPE=FUNCTIONAL GROUP=agent
89
- - TYPE=FUNCTIONAL GROUP=api
90
- - TYPE=FUNCTIONAL GROUP=background
91
- - TYPE=FUNCTIONAL GROUP=database
92
- - TYPE=FUNCTIONAL GROUP=httpclients
93
- - TYPE=FUNCTIONAL GROUP=rails
94
- - TYPE=FUNCTIONAL GROUP=serialization
95
- - TYPE=FUNCTIONAL GROUP=sinatra
96
- - TYPE=FUNCTIONAL GROUP=rest
97
- - TYPE=FUNCTIONAL GROUP=background_2
98
- - TYPE=FUNCTIONAL GROUP=infinite_tracing
99
- - TYPE=NULLVERSE
100
-
101
- matrix:
102
- allow_failures:
103
- - rvm: jruby-9.2.6.0
104
- env: TYPE=FUNCTIONAL GROUP=agent
105
- fast_finish: true
106
- exclude:
107
- # Unsupported Rails/Ruby combinations
108
- # 2.7
109
- - rvm: 2.7.0
110
- env: TYPE=UNIT ENVIRONMENT=rails30
111
- - rvm: 2.7.0
112
- env: TYPE=UNIT ENVIRONMENT=rails31
113
- - rvm: 2.7.0
114
- env: TYPE=UNIT ENVIRONMENT=rails32
115
- - rvm: 2.7.0
116
- env: TYPE=UNIT ENVIRONMENT=rails40
117
- - rvm: 2.7.0
118
- env: TYPE=UNIT ENVIRONMENT=rails41
119
-
120
- - rvm: 2.7.0
121
- env: TYPE=UNIT ENVIRONMENT=rails42 # rails (= 4.2.11) depends on bundler (< 2.0, >= 1.3.0)
122
- - rvm: 2.7.0
123
- env: TYPE=UNIT ENVIRONMENT=rails50 # rails (= 5.0.0) depends on bundler (< 2.0, >= 1.3.0)
124
- - rvm: 2.7.0
125
- env: TYPE=UNIT ENVIRONMENT=rails51 # rails (= 5.1.0) depends on bundler (< 2.0, >= 1.3.0)
126
- - rvm: 2.7.0
127
- env: TYPE=UNIT ENVIRONMENT=rails52 # rails (= 5.2.0) depends on bundler (< 2.0, >= 1.3.0)
128
- - rvm: 2.7.0
129
- env: TYPE=FUNCTIONAL GROUP=api # blocked: https://github.com/solnic/coercible/issues/27
130
- - rvm: 2.7.0
131
- env: TYPE=FUNCTIONAL GROUP=sinatra # padrino (~> 0.14.0) depends on bundler (~> 1.0)
132
-
133
- - rvm: 2.7.0
134
- env: TYPE=UNIT ENVIRONMENT=rails42 # rails (= 4.2.11) depends on bundler (< 2.0, >= 1.3.0)
135
- - rvm: 2.7.0
136
- env: TYPE=UNIT ENVIRONMENT=rails50 # rails (= 5.0.0) depends on bundler (< 2.0, >= 1.3.0)
137
- - rvm: 2.7.0
138
- env: TYPE=UNIT ENVIRONMENT=rails51 # rails (= 5.1.0) depends on bundler (< 2.0, >= 1.3.0)
139
- - rvm: 2.7.0
140
- env: TYPE=UNIT ENVIRONMENT=rails52 # rails (= 5.2.0) depends on bundler (< 2.0, >= 1.3.0)
141
- - rvm: 2.7.0
142
- env: TYPE=FUNCTIONAL GROUP=api # blocked: https://github.com/solnic/coercible/issues/27
143
- - rvm: 2.7.0
144
- env: TYPE=FUNCTIONAL GROUP=sinatra # padrino (~> 0.14.0) depends on bundler (~> 1.0)
145
-
146
- # 2.6
147
- - rvm: 2.6.1
148
- env: TYPE=UNIT ENVIRONMENT=rails30
149
- - rvm: 2.6.1
150
- env: TYPE=UNIT ENVIRONMENT=rails31
151
- - rvm: 2.6.1
152
- env: TYPE=UNIT ENVIRONMENT=rails32
153
- - rvm: 2.6.1
154
- env: TYPE=UNIT ENVIRONMENT=rails40
155
- - rvm: 2.6.1
156
- env: TYPE=UNIT ENVIRONMENT=rails41
157
-
158
- # 2.5
159
- - rvm: 2.5.3
160
- env: TYPE=UNIT ENVIRONMENT=rails30
161
- - rvm: 2.5.3
162
- env: TYPE=UNIT ENVIRONMENT=rails31
163
- - rvm: 2.5.3
164
- env: TYPE=UNIT ENVIRONMENT=rails32
165
- - rvm: 2.5.3
166
- env: TYPE=UNIT ENVIRONMENT=rails40
167
- - rvm: 2.5.3
168
- env: TYPE=UNIT ENVIRONMENT=rails41
169
-
170
- # 2.4
171
- - rvm: 2.4.2
172
- env: TYPE=UNIT ENVIRONMENT=rails30
173
- - rvm: 2.4.2
174
- env: TYPE=UNIT ENVIRONMENT=rails31
175
- - rvm: 2.4.2
176
- env: TYPE=UNIT ENVIRONMENT=rails32
177
- - rvm: 2.4.2
178
- env: TYPE=UNIT ENVIRONMENT=rails40
179
- - rvm: 2.4.2
180
- env: TYPE=UNIT ENVIRONMENT=rails41
181
- - rvm: 2.4.2
182
- env: TYPE=UNIT ENVIRONMENT=rails60
183
-
184
- # 2.3
185
- - rvm: 2.3.5
186
- env: TYPE=UNIT ENVIRONMENT=rails60
187
-
188
- # 2.2
189
- - rvm: 2.2.8
190
- env: TYPE=UNIT ENVIRONMENT=rails60
191
-
192
- # 2.1
193
- - rvm: 2.1.10
194
- env: TYPE=UNIT ENVIRONMENT=rails50
195
- - rvm: 2.1.10
196
- env: TYPE=UNIT ENVIRONMENT=rails51
197
- - rvm: 2.1.10
198
- env: TYPE=UNIT ENVIRONMENT=rails52
199
- - rvm: 2.1.10
200
- env: TYPE=UNIT ENVIRONMENT=rails60
201
-
202
- # 2.0
203
- - rvm: 2.0.0-p648
204
- env: TYPE=UNIT ENVIRONMENT=rails50
205
- - rvm: 2.0.0-p648
206
- env: TYPE=UNIT ENVIRONMENT=rails51
207
- - rvm: 2.0.0-p648
208
- env: TYPE=UNIT ENVIRONMENT=rails52
209
- - rvm: 2.0.0-p648
210
- env: TYPE=UNIT ENVIRONMENT=rails60
211
-
212
- # jruby 9.2.6.0 (Compatible with MRI 2.5)
213
- - rvm: jruby-9.2.6.0
214
- env: TYPE=UNIT ENVIRONMENT=rails30
215
- - rvm: jruby-9.2.6.0
216
- env: TYPE=UNIT ENVIRONMENT=rails31
217
- - rvm: jruby-9.2.6.0
218
- env: TYPE=UNIT ENVIRONMENT=rails32
219
- - rvm: jruby-9.2.6.0
220
- env: TYPE=UNIT ENVIRONMENT=rails40
221
- - rvm: jruby-9.2.6.0
222
- env: TYPE=UNIT ENVIRONMENT=rails41
223
- - rvm: jruby-9.2.6.0
224
- env: TYPE=UNIT ENVIRONMENT=rails60
225
- - rvm: jruby-9.2.6.0
226
- env: TYPE=UNIT ENVIRONMENT=rails52
227
-
228
- # Excluding unsupported Rubies for grpc
229
- - rvm: 2.0.0-p648
230
- env: TYPE=FUNCTIONAL GROUP=infinite_tracing
231
- - rvm: 2.1.10
232
- env: TYPE=FUNCTIONAL GROUP=infinite_tracing
233
- - rvm: 2.2.8
234
- env: TYPE=FUNCTIONAL GROUP=infinite_tracing
235
- - rvm: 2.3.5
236
- env: TYPE=FUNCTIONAL GROUP=infinite_tracing
237
- - rvm: 2.4.2
238
- env: TYPE=FUNCTIONAL GROUP=infinite_tracing
239
- - rvm: jruby-9.2.6.0
240
- env: TYPE=FUNCTIONAL GROUP=infinite_tracing