newrelic_rpm 9.2.2 → 9.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.build_ignore +21 -0
  3. data/CHANGELOG.md +55 -0
  4. data/README.md +4 -4
  5. data/lib/new_relic/agent/configuration/default_source.rb +77 -29
  6. data/lib/new_relic/agent/configuration/manager.rb +3 -2
  7. data/lib/new_relic/agent/configuration/yaml_source.rb +13 -0
  8. data/lib/new_relic/agent/instrumentation/active_record.rb +1 -1
  9. data/lib/new_relic/agent/instrumentation/active_record_notifications.rb +2 -1
  10. data/lib/new_relic/agent/instrumentation/concurrent_ruby/chain.rb +1 -1
  11. data/lib/new_relic/agent/instrumentation/concurrent_ruby/instrumentation.rb +1 -2
  12. data/lib/new_relic/agent/instrumentation/concurrent_ruby/prepend.rb +1 -1
  13. data/lib/new_relic/agent/instrumentation/fiber/chain.rb +10 -3
  14. data/lib/new_relic/agent/instrumentation/fiber/instrumentation.rb +1 -2
  15. data/lib/new_relic/agent/instrumentation/fiber/prepend.rb +10 -3
  16. data/lib/new_relic/agent/instrumentation/memcache/instrumentation.rb +3 -3
  17. data/lib/new_relic/agent/instrumentation/rails_notifications/action_cable.rb +1 -1
  18. data/lib/new_relic/agent/instrumentation/thread/chain.rb +1 -1
  19. data/lib/new_relic/agent/instrumentation/thread/instrumentation.rb +0 -1
  20. data/lib/new_relic/agent/instrumentation/thread/prepend.rb +1 -1
  21. data/lib/new_relic/agent/log_event_aggregator.rb +49 -2
  22. data/lib/new_relic/agent/log_event_attributes.rb +115 -0
  23. data/lib/new_relic/agent/logging.rb +4 -4
  24. data/lib/new_relic/agent/method_tracer_helpers.rb +26 -5
  25. data/lib/new_relic/agent/tracer.rb +2 -2
  26. data/lib/new_relic/agent.rb +37 -0
  27. data/lib/new_relic/dependency_detection.rb +6 -0
  28. data/lib/new_relic/latest_changes.rb +1 -1
  29. data/lib/new_relic/supportability_helper.rb +1 -0
  30. data/lib/new_relic/traced_thread.rb +2 -3
  31. data/lib/new_relic/version.rb +2 -2
  32. data/lib/sequel/extensions/new_relic_instrumentation.rb +1 -1
  33. data/lib/tasks/bump_version.rake +21 -0
  34. data/lib/tasks/helpers/newrelicyml.rb +144 -0
  35. data/lib/tasks/helpers/version_bump.rb +62 -0
  36. data/lib/tasks/multiverse.rb +0 -8
  37. data/lib/tasks/newrelicyml.rake +13 -0
  38. data/newrelic.yml +307 -266
  39. data/newrelic_rpm.gemspec +5 -4
  40. metadata +12 -22
  41. data/.gitignore +0 -43
  42. data/.project +0 -23
  43. data/.rubocop.yml +0 -1845
  44. data/.rubocop_todo.yml +0 -61
  45. data/.simplecov +0 -16
  46. data/.snyk +0 -11
  47. data/.yardopts +0 -27
  48. data/Brewfile +0 -13
  49. data/DOCKER.md +0 -167
  50. data/Dockerfile +0 -10
  51. data/Guardfile +0 -27
  52. data/config/database.yml +0 -5
  53. data/config.dot +0 -278
  54. data/docker-compose.yml +0 -107
  55. data/lefthook.yml +0 -9
  56. data/test/agent_helper.rb +0 -1027
data/newrelic_rpm.gemspec CHANGED
@@ -38,7 +38,8 @@ Gem::Specification.new do |s|
38
38
  'homepage_uri' => 'https://newrelic.com/ruby'
39
39
  }
40
40
 
41
- file_list = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|infinite_tracing|\.github)/(?!agent_helper.rb)}) }
41
+ reject_list = File.read('./.build_ignore').split("\n")
42
+ file_list = `git ls-files -z`.split("\x0").reject { |f| reject_list.any? { |rf| f.start_with?(rf) } }
42
43
  build_file_path = 'lib/new_relic/build.rb'
43
44
  file_list << build_file_path if File.exist?(build_file_path)
44
45
  s.files = file_list
@@ -55,14 +56,14 @@ Gem::Specification.new do |s|
55
56
  s.add_development_dependency 'pry' unless ENV['CI']
56
57
  s.add_development_dependency 'rake', '12.3.3'
57
58
 
58
- s.add_development_dependency 'rubocop', '1.44.1' unless ENV['CI'] && RUBY_VERSION < '3.0.0'
59
- s.add_development_dependency 'rubocop-ast', '1.24.1' unless ENV['CI'] && RUBY_VERSION < '3.0.0'
59
+ s.add_development_dependency 'rubocop', '1.51' unless ENV['CI'] && RUBY_VERSION < '3.0.0'
60
+ s.add_development_dependency 'rubocop-ast', '1.28.1' unless ENV['CI'] && RUBY_VERSION < '3.0.0'
60
61
  s.add_development_dependency 'rubocop-minitest', '0.27.0' unless ENV['CI'] && RUBY_VERSION < '3.0.0'
61
62
  s.add_development_dependency 'rubocop-performance', '1.16.0' unless ENV['CI'] && RUBY_VERSION < '3.0.0'
62
63
  s.add_development_dependency 'rubocop-rake', '0.6.0' unless ENV['CI'] && RUBY_VERSION < '3.0.0'
63
64
 
64
65
  s.add_development_dependency 'simplecov' if RUBY_VERSION >= '2.7.0'
65
66
  s.add_development_dependency 'thor' unless ENV['CI']
66
- s.add_development_dependency 'warning' if RUBY_VERSION >= '2.4.0'
67
+ s.add_development_dependency 'warning'
67
68
  s.add_development_dependency 'yard'
68
69
  end
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: 9.2.2
4
+ version: 9.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanna McClure
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-05-01 00:00:00.000000000 Z
14
+ date: 2023-06-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -89,28 +89,28 @@ dependencies:
89
89
  requirements:
90
90
  - - '='
91
91
  - !ruby/object:Gem::Version
92
- version: 1.44.1
92
+ version: '1.51'
93
93
  type: :development
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - '='
98
98
  - !ruby/object:Gem::Version
99
- version: 1.44.1
99
+ version: '1.51'
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: rubocop-ast
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - '='
105
105
  - !ruby/object:Gem::Version
106
- version: 1.24.1
106
+ version: 1.28.1
107
107
  type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - '='
112
112
  - !ruby/object:Gem::Version
113
- version: 1.24.1
113
+ version: 1.28.1
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: rubocop-minitest
116
116
  requirement: !ruby/object:Gem::Requirement
@@ -215,20 +215,10 @@ extra_rdoc_files:
215
215
  - CONTRIBUTING.md
216
216
  - newrelic.yml
217
217
  files:
218
- - ".gitignore"
219
- - ".project"
220
- - ".rubocop.yml"
221
- - ".rubocop_todo.yml"
222
- - ".simplecov"
223
- - ".snyk"
224
- - ".yardopts"
225
- - Brewfile
218
+ - ".build_ignore"
226
219
  - CHANGELOG.md
227
220
  - CONTRIBUTING.md
228
- - DOCKER.md
229
- - Dockerfile
230
221
  - Gemfile
231
- - Guardfile
232
222
  - LICENSE
233
223
  - README.md
234
224
  - Rakefile
@@ -237,12 +227,8 @@ files:
237
227
  - bin/newrelic
238
228
  - bin/newrelic_cmd
239
229
  - bin/nrdebug
240
- - config.dot
241
- - config/database.yml
242
- - docker-compose.yml
243
230
  - init.rb
244
231
  - install.rb
245
- - lefthook.yml
246
232
  - lib/new_relic/agent.rb
247
233
  - lib/new_relic/agent/adaptive_sampler.rb
248
234
  - lib/new_relic/agent/agent.rb
@@ -483,6 +469,7 @@ files:
483
469
  - lib/new_relic/agent/linking_metadata.rb
484
470
  - lib/new_relic/agent/local_log_decorator.rb
485
471
  - lib/new_relic/agent/log_event_aggregator.rb
472
+ - lib/new_relic/agent/log_event_attributes.rb
486
473
  - lib/new_relic/agent/log_once.rb
487
474
  - lib/new_relic/agent/log_priority.rb
488
475
  - lib/new_relic/agent/logging.rb
@@ -615,14 +602,17 @@ files:
615
602
  - lib/sequel/extensions/new_relic_instrumentation.rb
616
603
  - lib/sequel/plugins/new_relic_instrumentation.rb
617
604
  - lib/tasks/all.rb
605
+ - lib/tasks/bump_version.rake
618
606
  - lib/tasks/config.rake
619
607
  - lib/tasks/coverage_report.rake
620
608
  - lib/tasks/helpers/config.html.erb
621
609
  - lib/tasks/helpers/config.text.erb
622
610
  - lib/tasks/helpers/format.rb
623
611
  - lib/tasks/helpers/matches.rb
612
+ - lib/tasks/helpers/newrelicyml.rb
624
613
  - lib/tasks/helpers/prompt.rb
625
614
  - lib/tasks/helpers/removers.rb
615
+ - lib/tasks/helpers/version_bump.rb
626
616
  - lib/tasks/install.rake
627
617
  - lib/tasks/instrumentation_generator/README.md
628
618
  - lib/tasks/instrumentation_generator/TODO.md
@@ -640,11 +630,11 @@ files:
640
630
  - lib/tasks/multiverse.rake
641
631
  - lib/tasks/multiverse.rb
642
632
  - lib/tasks/newrelic.rb
633
+ - lib/tasks/newrelicyml.rake
643
634
  - lib/tasks/tests.rake
644
635
  - newrelic.yml
645
636
  - newrelic_rpm.gemspec
646
637
  - recipes/newrelic.rb
647
- - test/agent_helper.rb
648
638
  homepage: https://github.com/newrelic/rpm
649
639
  licenses:
650
640
  - Apache-2.0
data/.gitignore DELETED
@@ -1,43 +0,0 @@
1
- .ruby-version
2
- Gemfile.lock
3
- Guard*
4
- .DS\_Store
5
- .svn/
6
- *~
7
- *.rbc
8
- pkg/
9
- *.gem
10
- !rails
11
- .idea/
12
- tmp/
13
- TAGS
14
- tags
15
- *.swp
16
- *.swo
17
-
18
- coverage
19
- /doc/
20
- /log/
21
- /lerg/
22
- gems/newrelic_rpm.gemspec
23
- gems/newrelic_rpm*.tar.gz
24
- lib/new_relic/build.rb
25
- .pryrc
26
- .tm_properties
27
- .bundle
28
- .yardoc
29
- artifacts/
30
- test/performance/log/
31
- test/performance/script/log/
32
- infinite_tracing/log/
33
- test/fixtures/cross_agent_tests/*/README.md
34
- node_modules/
35
- yarn.lock
36
- package-lock.json
37
- errors.txt
38
- .history/
39
- vendor/
40
- Brewfile.lock.json
41
- .github/actions/simplecov-report/lib/
42
- test/minitest/minitest_time_report
43
- gem_manifest_*.json
data/.project DELETED
@@ -1,23 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>New Relic Agent</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>com.aptana.ide.core.unifiedBuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- <buildCommand>
14
- <name>org.rubypeople.rdt.core.rubybuilder</name>
15
- <arguments>
16
- </arguments>
17
- </buildCommand>
18
- </buildSpec>
19
- <natures>
20
- <nature>com.aptana.ruby.core.rubynature</nature>
21
- <nature>org.rubypeople.rdt.core.rubynature</nature>
22
- </natures>
23
- </projectDescription>