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/docker-compose.yml DELETED
@@ -1,107 +0,0 @@
1
- version: "3.9"
2
- services:
3
- elasticsearch7:
4
- image: elasticsearch:7.16.2
5
- ports:
6
- - "9200:9200"
7
- environment:
8
- - discovery.type=single-node
9
- - bootstrap.memory_lock=true
10
- - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
11
- mem_limit: 1g
12
- elasticsearch8:
13
- image: elasticsearch:8.4.2
14
- ports:
15
- - "9250:9250"
16
- environment:
17
- - discovery.type=single-node
18
- - xpack.security.enabled=false
19
- - http.port=9250
20
- - bootstrap.memory_lock=true
21
- - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
22
- mem_limit: 1g
23
- mysql:
24
- image: mysql:5.7
25
- restart: always
26
- environment:
27
- MYSQL_ROOT_PASSWORD: mysql_root_password
28
- MYSQL_DATABASE: app
29
- expose:
30
- - "3306"
31
- volumes:
32
- - mysql:/var/lib/mysql
33
- rabbitmq:
34
- image: rabbitmq:3.9.12
35
- restart: always
36
- environment:
37
- RABBITMQ_NODENAME: rabbit
38
- expose:
39
- - "5672"
40
- - "15672"
41
- - "25672"
42
- - "4369"
43
- memcached:
44
- image: memcached:1.6.12
45
- restart: always
46
- expose:
47
- - "11211"
48
- mongodb:
49
- image: mongo:5.0.4
50
- restart: always
51
- volumes:
52
- - /data/db
53
- expose:
54
- - "27017"
55
- postgres:
56
- image: postgres:14.2
57
- restart: always
58
- environment:
59
- POSTGRES_USER: admin
60
- POSTGRES_PASSWORD: postgres_password
61
- volumes:
62
- - postgres:/var/lib/postgresql/data
63
- expose:
64
- - "5432"
65
- redis:
66
- image: redis:6.2.6
67
- restart: always
68
- volumes:
69
- - /var/lib/redis
70
- expose:
71
- - "6379"
72
- app:
73
- build:
74
- context: .
75
- args:
76
- - ruby_version=${RUBY_VERSION:-3.1}
77
- image: newrelic_rpm
78
- tty: true
79
- stdin_open: true
80
- environment:
81
- MYSQL_USERNAME: root
82
- MYSQL_PASSWORD: mysql_root_password
83
- DATABASE_NAME: app
84
- MYSQL_HOST: mysql
85
- POSTGRES_USERNAME: admin
86
- POSTGRES_PASSWORD: postgres_password
87
- command: ["irb"]
88
- volumes:
89
- - ".:/usr/src/app"
90
- depends_on:
91
- - elasticsearch7
92
- - elasticsearch8
93
- - mysql
94
- - memcached
95
- - mongodb
96
- - postgres
97
- - rabbitmq
98
- - redis
99
- sysctls:
100
- - "net.ipv6.conf.all.disable_ipv6=0"
101
- volumes:
102
- mongodb:
103
- driver: local
104
- mysql:
105
- driver: local
106
- postgres:
107
- driver: local
data/lefthook.yml DELETED
@@ -1,9 +0,0 @@
1
- # Lefthook (https://github.com/evilmartians/lefthook) is a git hooks manager
2
- # Install it on your machine by running `gem install lefthook`
3
- pre-commit:
4
- parallel: true
5
- commands:
6
- rubocop:
7
- files: git diff --name-only --staged
8
- glob: "*.rb"
9
- run: rubocop --force-exclusion {files}