newrelic_rpm 8.0.0 → 8.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.rubocop.yml +1936 -0
  4. data/Brewfile +10 -0
  5. data/CHANGELOG.md +96 -0
  6. data/CONTRIBUTING.md +15 -3
  7. data/Guardfile +8 -8
  8. data/README.md +3 -1
  9. data/Rakefile +7 -9
  10. data/bin/mongrel_rpm +8 -9
  11. data/bin/newrelic +1 -1
  12. data/bin/nrdebug +14 -14
  13. data/init.rb +0 -2
  14. data/lefthook.yml +9 -0
  15. data/lib/new_relic/agent/adaptive_sampler.rb +7 -3
  16. data/lib/new_relic/agent/agent.rb +38 -40
  17. data/lib/new_relic/agent/agent_logger.rb +8 -9
  18. data/lib/new_relic/agent/attribute_filter.rb +31 -31
  19. data/lib/new_relic/agent/attributes.rb +2 -2
  20. data/lib/new_relic/agent/autostart.rb +6 -7
  21. data/lib/new_relic/agent/commands/agent_command.rb +2 -2
  22. data/lib/new_relic/agent/commands/agent_command_router.rb +6 -5
  23. data/lib/new_relic/agent/commands/thread_profiler_session.rb +0 -3
  24. data/lib/new_relic/agent/configuration/default_source.rb +343 -337
  25. data/lib/new_relic/agent/configuration/dotted_hash.rb +3 -3
  26. data/lib/new_relic/agent/configuration/environment_source.rb +3 -4
  27. data/lib/new_relic/agent/configuration/event_harvest_config.rb +2 -4
  28. data/lib/new_relic/agent/configuration/high_security_source.rb +7 -7
  29. data/lib/new_relic/agent/configuration/manager.rb +57 -57
  30. data/lib/new_relic/agent/configuration/mask_defaults.rb +1 -1
  31. data/lib/new_relic/agent/configuration/security_policy_source.rb +73 -73
  32. data/lib/new_relic/agent/configuration/server_source.rb +10 -10
  33. data/lib/new_relic/agent/configuration/yaml_source.rb +9 -9
  34. data/lib/new_relic/agent/connect/request_builder.rb +13 -16
  35. data/lib/new_relic/agent/connect/response_handler.rb +0 -3
  36. data/lib/new_relic/agent/custom_event_aggregator.rb +9 -10
  37. data/lib/new_relic/agent/database/explain_plan_helpers.rb +3 -4
  38. data/lib/new_relic/agent/database/obfuscation_helpers.rb +12 -12
  39. data/lib/new_relic/agent/database/postgres_explain_obfuscator.rb +2 -2
  40. data/lib/new_relic/agent/database.rb +20 -24
  41. data/lib/new_relic/agent/datastores/metric_helper.rb +10 -10
  42. data/lib/new_relic/agent/datastores/mongo/event_formatter.rb +2 -3
  43. data/lib/new_relic/agent/datastores/mongo/metric_translator.rb +3 -5
  44. data/lib/new_relic/agent/datastores/mongo/obfuscator.rb +1 -2
  45. data/lib/new_relic/agent/datastores/redis.rb +2 -4
  46. data/lib/new_relic/agent/datastores.rb +1 -3
  47. data/lib/new_relic/agent/distributed_tracing/cross_app_payload.rb +5 -5
  48. data/lib/new_relic/agent/distributed_tracing/cross_app_tracing.rb +11 -10
  49. data/lib/new_relic/agent/distributed_tracing/distributed_trace_attributes.rb +10 -11
  50. data/lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb +41 -42
  51. data/lib/new_relic/agent/distributed_tracing/distributed_trace_transport_type.rb +3 -3
  52. data/lib/new_relic/agent/distributed_tracing/trace_context.rb +41 -43
  53. data/lib/new_relic/agent/distributed_tracing/trace_context_payload.rb +24 -24
  54. data/lib/new_relic/agent/distributed_tracing.rb +17 -18
  55. data/lib/new_relic/agent/encoding_normalizer.rb +1 -1
  56. data/lib/new_relic/agent/error_collector.rb +17 -17
  57. data/lib/new_relic/agent/error_event_aggregator.rb +1 -1
  58. data/lib/new_relic/agent/error_filter.rb +16 -10
  59. data/lib/new_relic/agent/error_trace_aggregator.rb +1 -1
  60. data/lib/new_relic/agent/event_aggregator.rb +1 -1
  61. data/lib/new_relic/agent/event_buffer.rb +6 -7
  62. data/lib/new_relic/agent/event_listener.rb +0 -1
  63. data/lib/new_relic/agent/event_loop.rb +10 -10
  64. data/lib/new_relic/agent/external.rb +1 -2
  65. data/lib/new_relic/agent/guid_generator.rb +2 -9
  66. data/lib/new_relic/agent/harvester.rb +3 -4
  67. data/lib/new_relic/agent/heap.rb +1 -3
  68. data/lib/new_relic/agent/hostname.rb +3 -3
  69. data/lib/new_relic/agent/http_clients/abstract.rb +5 -7
  70. data/lib/new_relic/agent/http_clients/curb_wrappers.rb +1 -5
  71. data/lib/new_relic/agent/http_clients/excon_wrappers.rb +4 -4
  72. data/lib/new_relic/agent/http_clients/http_rb_wrappers.rb +3 -3
  73. data/lib/new_relic/agent/http_clients/httpclient_wrappers.rb +1 -2
  74. data/lib/new_relic/agent/http_clients/net_http_wrappers.rb +8 -3
  75. data/lib/new_relic/agent/http_clients/typhoeus_wrappers.rb +2 -3
  76. data/lib/new_relic/agent/http_clients/uri_util.rb +0 -1
  77. data/lib/new_relic/agent/instrumentation/action_cable_subscriber.rb +2 -3
  78. data/lib/new_relic/agent/instrumentation/action_controller_subscriber.rb +9 -10
  79. data/lib/new_relic/agent/instrumentation/action_view_subscriber.rb +5 -7
  80. data/lib/new_relic/agent/instrumentation/active_job.rb +4 -3
  81. data/lib/new_relic/agent/instrumentation/active_merchant.rb +2 -2
  82. data/lib/new_relic/agent/instrumentation/active_record.rb +20 -18
  83. data/lib/new_relic/agent/instrumentation/active_record_helper.rb +36 -42
  84. data/lib/new_relic/agent/instrumentation/active_record_notifications.rb +28 -25
  85. data/lib/new_relic/agent/instrumentation/active_record_prepend.rb +3 -3
  86. data/lib/new_relic/agent/instrumentation/active_record_subscriber.rb +5 -6
  87. data/lib/new_relic/agent/instrumentation/active_storage.rb +1 -1
  88. data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +8 -9
  89. data/lib/new_relic/agent/instrumentation/bunny/chain.rb +1 -1
  90. data/lib/new_relic/agent/instrumentation/bunny/instrumentation.rb +7 -8
  91. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +41 -41
  92. data/lib/new_relic/agent/instrumentation/curb/chain.rb +19 -20
  93. data/lib/new_relic/agent/instrumentation/curb/instrumentation.rb +34 -38
  94. data/lib/new_relic/agent/instrumentation/curb/prepend.rb +9 -10
  95. data/lib/new_relic/agent/instrumentation/data_mapper.rb +10 -10
  96. data/lib/new_relic/agent/instrumentation/delayed_job/chain.rb +5 -7
  97. data/lib/new_relic/agent/instrumentation/delayed_job/instrumentation.rb +5 -9
  98. data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +4 -4
  99. data/lib/new_relic/agent/instrumentation/excon/middleware.rb +2 -2
  100. data/lib/new_relic/agent/instrumentation/excon.rb +0 -1
  101. data/lib/new_relic/agent/instrumentation/grape/chain.rb +1 -2
  102. data/lib/new_relic/agent/instrumentation/grape/instrumentation.rb +6 -7
  103. data/lib/new_relic/agent/instrumentation/grape.rb +2 -3
  104. data/lib/new_relic/agent/instrumentation/httpclient/chain.rb +2 -3
  105. data/lib/new_relic/agent/instrumentation/httpclient/instrumentation.rb +0 -1
  106. data/lib/new_relic/agent/instrumentation/httpclient/prepend.rb +0 -2
  107. data/lib/new_relic/agent/instrumentation/httprb/chain.rb +2 -2
  108. data/lib/new_relic/agent/instrumentation/httprb/instrumentation.rb +6 -6
  109. data/lib/new_relic/agent/instrumentation/httprb/prepend.rb +1 -1
  110. data/lib/new_relic/agent/instrumentation/ignore_actions.rb +2 -3
  111. data/lib/new_relic/agent/instrumentation/logger/chain.rb +21 -0
  112. data/lib/new_relic/agent/instrumentation/logger/instrumentation.rb +58 -0
  113. data/lib/new_relic/agent/instrumentation/logger/prepend.rb +13 -0
  114. data/lib/new_relic/agent/instrumentation/logger.rb +25 -0
  115. data/lib/new_relic/agent/instrumentation/memcache/dalli.rb +7 -2
  116. data/lib/new_relic/agent/instrumentation/memcache/helper.rb +5 -1
  117. data/lib/new_relic/agent/instrumentation/memcache/prepend.rb +9 -2
  118. data/lib/new_relic/agent/instrumentation/middleware_proxy.rb +9 -10
  119. data/lib/new_relic/agent/instrumentation/middleware_tracing.rb +4 -5
  120. data/lib/new_relic/agent/instrumentation/mongodb_command_subscriber.rb +4 -4
  121. data/lib/new_relic/agent/instrumentation/net_http/chain.rb +3 -4
  122. data/lib/new_relic/agent/instrumentation/net_http/instrumentation.rb +5 -5
  123. data/lib/new_relic/agent/instrumentation/net_http/prepend.rb +4 -4
  124. data/lib/new_relic/agent/instrumentation/net_http.rb +1 -1
  125. data/lib/new_relic/agent/instrumentation/notifications_subscriber.rb +2 -3
  126. data/lib/new_relic/agent/instrumentation/padrino/chain.rb +23 -19
  127. data/lib/new_relic/agent/instrumentation/padrino/instrumentation.rb +3 -2
  128. data/lib/new_relic/agent/instrumentation/padrino/prepend.rb +2 -2
  129. data/lib/new_relic/agent/instrumentation/padrino.rb +2 -5
  130. data/lib/new_relic/agent/instrumentation/queue_time.rb +5 -5
  131. data/lib/new_relic/agent/instrumentation/rack/chain.rb +5 -5
  132. data/lib/new_relic/agent/instrumentation/rack/helpers.rb +0 -1
  133. data/lib/new_relic/agent/instrumentation/rack/instrumentation.rb +4 -5
  134. data/lib/new_relic/agent/instrumentation/rack/prepend.rb +0 -1
  135. data/lib/new_relic/agent/instrumentation/rack.rb +1 -1
  136. data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +6 -6
  137. data/lib/new_relic/agent/instrumentation/rails_notifications/action_cable.rb +2 -2
  138. data/lib/new_relic/agent/instrumentation/rails_notifications/action_controller.rb +0 -1
  139. data/lib/new_relic/agent/instrumentation/rake/chain.rb +0 -5
  140. data/lib/new_relic/agent/instrumentation/rake/instrumentation.rb +6 -6
  141. data/lib/new_relic/agent/instrumentation/rake.rb +1 -1
  142. data/lib/new_relic/agent/instrumentation/redis/chain.rb +6 -6
  143. data/lib/new_relic/agent/instrumentation/redis/instrumentation.rb +2 -2
  144. data/lib/new_relic/agent/instrumentation/redis/prepend.rb +1 -1
  145. data/lib/new_relic/agent/instrumentation/redis.rb +1 -1
  146. data/lib/new_relic/agent/instrumentation/resque/chain.rb +2 -3
  147. data/lib/new_relic/agent/instrumentation/resque/helper.rb +1 -1
  148. data/lib/new_relic/agent/instrumentation/resque/instrumentation.rb +4 -4
  149. data/lib/new_relic/agent/instrumentation/resque/prepend.rb +1 -2
  150. data/lib/new_relic/agent/instrumentation/resque.rb +7 -7
  151. data/lib/new_relic/agent/instrumentation/sequel.rb +7 -9
  152. data/lib/new_relic/agent/instrumentation/sequel_helper.rb +1 -1
  153. data/lib/new_relic/agent/instrumentation/sidekiq.rb +5 -4
  154. data/lib/new_relic/agent/instrumentation/sinatra/ignorer.rb +0 -1
  155. data/lib/new_relic/agent/instrumentation/sinatra/instrumentation.rb +4 -3
  156. data/lib/new_relic/agent/instrumentation/sunspot.rb +1 -1
  157. data/lib/new_relic/agent/instrumentation/tilt/chain.rb +24 -0
  158. data/lib/new_relic/agent/instrumentation/tilt/instrumentation.rb +40 -0
  159. data/lib/new_relic/agent/instrumentation/tilt/prepend.rb +13 -0
  160. data/lib/new_relic/agent/instrumentation/tilt.rb +25 -0
  161. data/lib/new_relic/agent/instrumentation/typhoeus/chain.rb +4 -4
  162. data/lib/new_relic/agent/instrumentation/typhoeus/instrumentation.rb +3 -5
  163. data/lib/new_relic/agent/instrumentation/typhoeus/prepend.rb +1 -1
  164. data/lib/new_relic/agent/internal_agent_error.rb +1 -1
  165. data/lib/new_relic/agent/javascript_instrumentor.rb +28 -28
  166. data/lib/new_relic/agent/logging.rb +11 -8
  167. data/lib/new_relic/agent/memory_logger.rb +1 -1
  168. data/lib/new_relic/agent/messaging.rb +42 -43
  169. data/lib/new_relic/agent/method_tracer.rb +17 -15
  170. data/lib/new_relic/agent/method_tracer_helpers.rb +2 -2
  171. data/lib/new_relic/agent/monitors/cross_app_monitor.rb +19 -16
  172. data/lib/new_relic/agent/monitors/distributed_tracing_monitor.rb +2 -2
  173. data/lib/new_relic/agent/monitors/inbound_request_monitor.rb +0 -1
  174. data/lib/new_relic/agent/monitors/synthetics_monitor.rb +4 -7
  175. data/lib/new_relic/agent/monitors.rb +1 -2
  176. data/lib/new_relic/agent/new_relic_service/encoders.rb +4 -4
  177. data/lib/new_relic/agent/new_relic_service/json_marshaller.rb +1 -1
  178. data/lib/new_relic/agent/new_relic_service/marshaller.rb +1 -1
  179. data/lib/new_relic/agent/new_relic_service/security_policy_settings.rb +4 -3
  180. data/lib/new_relic/agent/new_relic_service.rb +26 -33
  181. data/lib/new_relic/agent/noticible_error.rb +0 -2
  182. data/lib/new_relic/agent/null_logger.rb +6 -2
  183. data/lib/new_relic/agent/obfuscator.rb +6 -8
  184. data/lib/new_relic/agent/parameter_filtering.rb +15 -7
  185. data/lib/new_relic/agent/payload_metric_mapping.rb +8 -9
  186. data/lib/new_relic/agent/pipe_channel_manager.rb +5 -6
  187. data/lib/new_relic/agent/pipe_service.rb +1 -1
  188. data/lib/new_relic/agent/priority_sampled_buffer.rb +4 -7
  189. data/lib/new_relic/agent/rules_engine/replacement_rule.rb +9 -9
  190. data/lib/new_relic/agent/rules_engine/segment_terms_rule.rb +12 -12
  191. data/lib/new_relic/agent/rules_engine.rb +2 -2
  192. data/lib/new_relic/agent/sampler.rb +2 -3
  193. data/lib/new_relic/agent/sampler_collection.rb +2 -3
  194. data/lib/new_relic/agent/samplers/delayed_job_sampler.rb +10 -7
  195. data/lib/new_relic/agent/samplers/memory_sampler.rb +4 -3
  196. data/lib/new_relic/agent/samplers/vm_sampler.rb +18 -18
  197. data/lib/new_relic/agent/span_event_aggregator.rb +8 -8
  198. data/lib/new_relic/agent/span_event_primitive.rb +39 -39
  199. data/lib/new_relic/agent/sql_sampler.rb +9 -9
  200. data/lib/new_relic/agent/stats.rb +16 -16
  201. data/lib/new_relic/agent/stats_engine/gc_profiler.rb +7 -9
  202. data/lib/new_relic/agent/stats_engine/stats_hash.rb +8 -9
  203. data/lib/new_relic/agent/stats_engine.rb +6 -6
  204. data/lib/new_relic/agent/synthetics_event_aggregator.rb +0 -1
  205. data/lib/new_relic/agent/system_info.rb +22 -20
  206. data/lib/new_relic/agent/threading/agent_thread.rb +4 -5
  207. data/lib/new_relic/agent/threading/backtrace_node.rb +6 -9
  208. data/lib/new_relic/agent/threading/backtrace_service.rb +8 -8
  209. data/lib/new_relic/agent/threading/thread_profile.rb +15 -18
  210. data/lib/new_relic/agent/tracer.rb +37 -43
  211. data/lib/new_relic/agent/transaction/abstract_segment.rb +6 -6
  212. data/lib/new_relic/agent/transaction/datastore_segment.rb +7 -6
  213. data/lib/new_relic/agent/transaction/distributed_tracer.rb +8 -9
  214. data/lib/new_relic/agent/transaction/distributed_tracing.rb +21 -22
  215. data/lib/new_relic/agent/transaction/external_request_segment.rb +6 -5
  216. data/lib/new_relic/agent/transaction/message_broker_segment.rb +23 -23
  217. data/lib/new_relic/agent/transaction/request_attributes.rb +7 -7
  218. data/lib/new_relic/agent/transaction/segment.rb +6 -3
  219. data/lib/new_relic/agent/transaction/slowest_sample_buffer.rb +0 -2
  220. data/lib/new_relic/agent/transaction/trace.rb +8 -8
  221. data/lib/new_relic/agent/transaction/trace_context.rb +13 -15
  222. data/lib/new_relic/agent/transaction/trace_node.rb +16 -16
  223. data/lib/new_relic/agent/transaction/tracing.rb +1 -3
  224. data/lib/new_relic/agent/transaction/transaction_sample_buffer.rb +1 -2
  225. data/lib/new_relic/agent/transaction.rb +79 -81
  226. data/lib/new_relic/agent/transaction_error_primitive.rb +16 -16
  227. data/lib/new_relic/agent/transaction_event_aggregator.rb +5 -6
  228. data/lib/new_relic/agent/transaction_event_primitive.rb +29 -29
  229. data/lib/new_relic/agent/transaction_metrics.rb +3 -3
  230. data/lib/new_relic/agent/transaction_sampler.rb +0 -1
  231. data/lib/new_relic/agent/transaction_time_aggregator.rb +6 -6
  232. data/lib/new_relic/agent/utilization/azure.rb +1 -1
  233. data/lib/new_relic/agent/utilization_data.rb +3 -4
  234. data/lib/new_relic/agent/vm/monotonic_gc_profiler.rb +1 -1
  235. data/lib/new_relic/agent/vm/snapshot.rb +3 -3
  236. data/lib/new_relic/agent/worker_loop.rb +3 -5
  237. data/lib/new_relic/agent.rb +22 -22
  238. data/lib/new_relic/cli/command.rb +15 -17
  239. data/lib/new_relic/cli/commands/deployments.rb +20 -22
  240. data/lib/new_relic/cli/commands/install.rb +6 -10
  241. data/lib/new_relic/coerce.rb +5 -8
  242. data/lib/new_relic/collection_helper.rb +48 -47
  243. data/lib/new_relic/control/class_methods.rb +2 -2
  244. data/lib/new_relic/control/frameworks/external.rb +1 -1
  245. data/lib/new_relic/control/frameworks/rails.rb +5 -6
  246. data/lib/new_relic/control/frameworks/rails3.rb +2 -3
  247. data/lib/new_relic/control/frameworks/ruby.rb +2 -2
  248. data/lib/new_relic/control/frameworks/sinatra.rb +6 -0
  249. data/lib/new_relic/control/instance_methods.rb +4 -5
  250. data/lib/new_relic/control/instrumentation.rb +4 -5
  251. data/lib/new_relic/control/server_methods.rb +2 -3
  252. data/lib/new_relic/control.rb +0 -1
  253. data/lib/new_relic/dependency_detection.rb +6 -8
  254. data/lib/new_relic/environment_report.rb +16 -18
  255. data/lib/new_relic/helper.rb +5 -5
  256. data/lib/new_relic/language_support.rb +1 -1
  257. data/lib/new_relic/latest_changes.rb +2 -2
  258. data/lib/new_relic/local_environment.rb +7 -7
  259. data/lib/new_relic/metric_data.rb +6 -7
  260. data/lib/new_relic/metric_spec.rb +3 -3
  261. data/lib/new_relic/noticed_error.rb +14 -15
  262. data/lib/new_relic/rack/agent_middleware.rb +2 -2
  263. data/lib/new_relic/rack/browser_monitoring.rb +9 -9
  264. data/lib/new_relic/recipes/capistrano3.rb +11 -13
  265. data/lib/new_relic/recipes/capistrano_legacy.rb +11 -14
  266. data/lib/new_relic/supportability_helper.rb +1 -2
  267. data/lib/new_relic/version.rb +3 -4
  268. data/lib/sequel/extensions/newrelic_instrumentation.rb +4 -7
  269. data/lib/sequel/plugins/newrelic_instrumentation.rb +3 -9
  270. data/lib/tasks/all.rb +1 -1
  271. data/lib/tasks/config.rake +21 -21
  272. data/lib/tasks/multiverse.rb +4 -6
  273. data/lib/tasks/tests.rake +3 -7
  274. data/newrelic.yml +8 -21
  275. data/newrelic_rpm.gemspec +13 -12
  276. data/recipes/newrelic.rb +1 -1
  277. data/test/agent_helper.rb +55 -55
  278. metadata +43 -7
  279. data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +0 -125
  280. data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +0 -46
  281. data/lib/new_relic/agent/supported_versions.rb +0 -275
@@ -7,7 +7,6 @@ require 'forwardable'
7
7
  module NewRelic
8
8
  module Agent
9
9
  module Configuration
10
-
11
10
  # Helper since default Procs are evaluated in the context of this module
12
11
  def self.value_of(key)
13
12
  Proc.new do
@@ -27,7 +26,7 @@ module NewRelic
27
26
  # - if user set prepend to `false` then we use method_alias chaining
28
27
  # - auto, when returned means, try to use prepend unless conflicting gems discovered
29
28
  #
30
- def self.instrumentation_value_of(disable_key, prepend_key=nil)
29
+ def self.instrumentation_value_of(disable_key, prepend_key = nil)
31
30
  Proc.new do
32
31
  if NewRelic::Agent.config[disable_key]
33
32
  "disabled"
@@ -78,9 +77,9 @@ module NewRelic
78
77
  def self.config_search_paths
79
78
  Proc.new {
80
79
  paths = [
81
- File.join("config","newrelic.yml"),
80
+ File.join("config", "newrelic.yml"),
82
81
  File.join("newrelic.yml"),
83
- File.join("config","newrelic.yml.erb"),
82
+ File.join("config", "newrelic.yml.erb"),
84
83
  File.join("newrelic.yml.erb")
85
84
  ]
86
85
 
@@ -124,11 +123,9 @@ module NewRelic
124
123
  when defined?(::NewRelic::TEST) then :test
125
124
  when defined?(::Rails::VERSION)
126
125
  case Rails::VERSION::MAJOR
127
- when 0..2
128
- :rails
129
126
  when 3
130
127
  :rails3
131
- when 4..6
128
+ when 4..7
132
129
  :rails_notifications
133
130
  else
134
131
  ::NewRelic::Agent.logger.warn "Detected untested Rails version #{Rails::VERSION::STRING}"
@@ -144,8 +141,8 @@ module NewRelic
144
141
  def self.agent_enabled
145
142
  Proc.new {
146
143
  NewRelic::Agent.config[:enabled] &&
147
- (NewRelic::Agent.config[:test_mode] || NewRelic::Agent.config[:monitor_mode]) &&
148
- NewRelic::Agent::Autostart.agent_should_start?
144
+ (NewRelic::Agent.config[:test_mode] || NewRelic::Agent.config[:monitor_mode]) &&
145
+ NewRelic::Agent::Autostart.agent_should_start?
149
146
  }
150
147
  end
151
148
 
@@ -154,7 +151,7 @@ module NewRelic
154
151
  def self.audit_log_path
155
152
  Proc.new {
156
153
  log_file_path = NewRelic::Agent.config[:log_file_path]
157
- wants_stdout = (log_file_path.upcase == 'STDOUT')
154
+ wants_stdout = (log_file_path.upcase == 'STDOUT')
158
155
  audit_log_dir = wants_stdout ? DEFAULT_LOG_DIR : log_file_path
159
156
 
160
157
  File.join(audit_log_dir, 'newrelic_audit.log')
@@ -177,7 +174,7 @@ module NewRelic
177
174
  # set. Once JS errors are GA, browser_monitoring.loader can stop
178
175
  # being dynamic.
179
176
  def self.browser_monitoring_loader
180
- Proc.new { NewRelic::Agent.config[:js_errors_beta] ? "full" : "rum"}
177
+ Proc.new { NewRelic::Agent.config[:js_errors_beta] ? "full" : "rum" }
181
178
  end
182
179
 
183
180
  def self.transaction_tracer_transaction_threshold
@@ -354,7 +351,7 @@ module NewRelic
354
351
  :entity_guid => {
355
352
  :default => nil,
356
353
  :allow_nil => true,
357
- :public => true,
354
+ :public => false,
358
355
  :type => String,
359
356
  :allowed_from_server => true,
360
357
  :description => 'The [Entity GUID](/attribute-dictionary/span/entityguid) for the entity running this agent.'
@@ -535,7 +532,7 @@ module NewRelic
535
532
  :type => Float,
536
533
  :allowed_from_server => true,
537
534
  :deprecated => true,
538
- :description => 'Deprecated. For agent versions 3.5.0 or higher, [set your Apdex T via the New Relic UI](/docs/apm/new-relic-apm/apdex/changing-your-apdex-settings).'
535
+ :description => 'For agent versions 3.5.0 or higher, [set your Apdex T via the New Relic UI](/docs/apm/new-relic-apm/apdex/changing-your-apdex-settings).'
539
536
  },
540
537
  :'strip_exception_messages.enabled' => {
541
538
  :default => value_of(:high_security),
@@ -780,8 +777,7 @@ module NewRelic
780
777
  :deprecated => true,
781
778
  :type => Boolean,
782
779
  :allowed_from_server => false,
783
- :description => deprecated_description(:'instrumentation.delayed_job', 'If `true`, disables [Delayed::Job instrumentation](/docs/agents/ruby-agent/background-jobs/delayedjob).'
784
- )
780
+ :description => deprecated_description(:'instrumentation.delayed_job', 'If `true`, disables [Delayed::Job instrumentation](/docs/agents/ruby-agent/background-jobs/delayedjob).')
785
781
  },
786
782
  :disable_sinatra => {
787
783
  :default => false,
@@ -789,7 +785,7 @@ module NewRelic
789
785
  :type => Boolean,
790
786
  :deprecated => true,
791
787
  :allowed_from_server => false,
792
- :description => deprecated_description(:'instrumentation.sinatra', 'If `true` , disables [Sinatra instrumentation](/docs/agents/ruby-agent/frameworks/sinatra-support).' )
788
+ :description => deprecated_description(:'instrumentation.sinatra', 'If `true` , disables [Sinatra instrumentation](/docs/agents/ruby-agent/frameworks/sinatra-support).')
793
789
  },
794
790
  :disable_sinatra_auto_middleware => {
795
791
  :default => false,
@@ -840,8 +836,7 @@ module NewRelic
840
836
  :allowed_from_server => false,
841
837
  :deprecated => true,
842
838
  :description => deprecated_description(:'instrumentation.net_http',
843
- 'If `true`, uses `Module#prepend` rather than alias_method for Net::HTTP instrumentation.'
844
- )
839
+ 'If `true`, uses `Module#prepend` rather than alias_method for Net::HTTP instrumentation.')
845
840
  },
846
841
  :'instrumentation.net_http' => {
847
842
  :default => instrumentation_value_of(:disable_net_http, :prepend_net_instrumentation),
@@ -940,40 +935,40 @@ module NewRelic
940
935
  :description => "Controls auto-instrumentation of Sinatra at start up. May be one of [auto|prepend|chain|disabled]."
941
936
  },
942
937
  :'instrumentation.rack' => {
943
- :default => instrumentation_value_of(:disable_rack),
944
- :public => true,
945
- :type => String,
938
+ :default => instrumentation_value_of(:disable_rack),
939
+ :public => true,
940
+ :type => String,
946
941
  :dynamic_name => true,
947
942
  :allowed_from_server => false,
948
- :description => "Controls auto-instrumentation of Rack. When enabled, the agent hooks into the " \
943
+ :description => "Controls auto-instrumentation of Rack. When enabled, the agent hooks into the " \
949
944
  "`to_app` method in Rack::Builder to find gems to instrument during " \
950
945
  "application startup. May be one of [auto|prepend|chain|disabled]."
951
946
  },
952
947
  :'instrumentation.rack_urlmap' => {
953
- :default => instrumentation_value_of(:disable_rack_urlmap),
954
- :public => true,
955
- :type => String,
948
+ :default => instrumentation_value_of(:disable_rack_urlmap),
949
+ :public => true,
950
+ :type => String,
956
951
  :dynamic_name => true,
957
952
  :allowed_from_server => false,
958
- :description => 'Controls auto-instrumentation of Rack::URLMap at start up. May be one of [auto|prepend|chain|disabled].'
953
+ :description => 'Controls auto-instrumentation of Rack::URLMap at start up. May be one of [auto|prepend|chain|disabled].'
959
954
  },
960
955
  :'instrumentation.puma_rack' => {
961
- :default => instrumentation_value_of(:disable_puma_rack), # TODO: change to value_of(:'instrumentation.rack') when we remove :disable_puma_rack in 8.0)
962
- :public => true,
963
- :type => String,
956
+ :default => instrumentation_value_of(:disable_puma_rack), # TODO: change to value_of(:'instrumentation.rack') when we remove :disable_puma_rack in 8.0)
957
+ :public => true,
958
+ :type => String,
964
959
  :dynamic_name => true,
965
960
  :allowed_from_server => false,
966
- :description => "Controls auto-instrumentation of Puma::Rack. When enabled, the agent hooks into the " \
961
+ :description => "Controls auto-instrumentation of Puma::Rack. When enabled, the agent hooks into the " \
967
962
  "`to_app` method in Puma::Rack::Builder to find gems to instrument during " \
968
963
  "application startup. May be one of [auto|prepend|chain|disabled]."
969
964
  },
970
965
  :'instrumentation.puma_rack_urlmap' => {
971
- :default => instrumentation_value_of(:disable_puma_rack_urlmap), # TODO: change to value_of(:'instrumentation.rack_urlmap') when we remove :disable_puma_rack_urlmap in 8.0)
972
- :public => true,
973
- :type => String,
966
+ :default => instrumentation_value_of(:disable_puma_rack_urlmap), # TODO: change to value_of(:'instrumentation.rack_urlmap') when we remove :disable_puma_rack_urlmap in 8.0)
967
+ :public => true,
968
+ :type => String,
974
969
  :dynamic_name => true,
975
970
  :allowed_from_server => false,
976
- :description => 'Controls auto-instrumentation of Puma::Rack::URLMap at start up. May be one of [auto|prepend|chain|disabled].'
971
+ :description => 'Controls auto-instrumentation of Puma::Rack::URLMap at start up. May be one of [auto|prepend|chain|disabled].'
977
972
  },
978
973
  :'instrumentation.memcached' => {
979
974
  :default => instrumentation_value_of(:disable_memcached),
@@ -981,7 +976,7 @@ module NewRelic
981
976
  :type => String,
982
977
  :dynamic_name => true,
983
978
  :allowed_from_server => false,
984
- :description => 'Controls auto-instrumentation of memcached gem for Memcache at start up. May be one of [auto|prepend|chain|disabled].'
979
+ :description => 'Controls auto-instrumentation of memcached gem for Memcache at start up. May be one of [auto|prepend|chain|disabled].'
985
980
  },
986
981
  :'instrumentation.memcache_client' => {
987
982
  :default => instrumentation_value_of(:disable_memcache_client),
@@ -989,7 +984,7 @@ module NewRelic
989
984
  :type => String,
990
985
  :dynamic_name => true,
991
986
  :allowed_from_server => false,
992
- :description => 'Controls auto-instrumentation of memcache-client gem for Memcache at start up. May be one of [auto|prepend|chain|disabled].'
987
+ :description => 'Controls auto-instrumentation of memcache-client gem for Memcache at start up. May be one of [auto|prepend|chain|disabled].'
993
988
  },
994
989
  :'instrumentation.memcache' => {
995
990
  :default => instrumentation_value_of(:disable_dalli),
@@ -997,7 +992,23 @@ module NewRelic
997
992
  :type => String,
998
993
  :dynamic_name => true,
999
994
  :allowed_from_server => false,
1000
- :description => 'Controls auto-instrumentation of dalli gem for Memcache at start up. May be one of [auto|prepend|chain|disabled].'
995
+ :description => 'Controls auto-instrumentation of dalli gem for Memcache at start up. May be one of [auto|prepend|chain|disabled].'
996
+ },
997
+ :'instrumentation.logger' => {
998
+ :default => "auto",
999
+ :public => true,
1000
+ :type => String,
1001
+ :dynamic_name => true,
1002
+ :allowed_from_server => false,
1003
+ :description => 'Controls auto-instrumentation of Ruby standard library Logger at start up. May be one of [auto|prepend|chain|disabled].'
1004
+ },
1005
+ :'instrumentation.tilt' => {
1006
+ :default => "auto",
1007
+ :public => true,
1008
+ :type => String,
1009
+ :dynamic_name => true,
1010
+ :allowed_from_server => false,
1011
+ :description => 'Controls auto-instrumentation of Tilt at start up. May be one of [auto|prepend|chain|disabled].'
1001
1012
  },
1002
1013
  :disable_data_mapper => {
1003
1014
  :default => false,
@@ -1152,7 +1163,7 @@ module NewRelic
1152
1163
  :type => Boolean,
1153
1164
  :deprecated => true,
1154
1165
  :allowed_from_server => false,
1155
- :description => 'Deprecated; use [`transaction_tracer.attributes.enabled`](#transaction_tracer-attributes-enabled) instead.'
1166
+ :description => 'Use [`transaction_tracer.attributes.enabled`](#transaction_tracer-attributes-enabled) instead.'
1156
1167
  },
1157
1168
  :'transaction_tracer.explain_threshold' => {
1158
1169
  :default => 0.5,
@@ -1195,39 +1206,39 @@ module NewRelic
1195
1206
  :type => Boolean,
1196
1207
  :allowed_from_server => false,
1197
1208
  :deprecated => true,
1198
- :description => 'Deprecated; use [`disable_sequel_instrumentation`](#disable_sequel_instrumentation) instead.'
1209
+ :description => 'Use [`disable_sequel_instrumentation`](#disable_sequel_instrumentation) instead.'
1199
1210
  },
1200
1211
  :disable_mongo => {
1201
- :default => false,
1202
- :public => true,
1203
- :type => Boolean,
1212
+ :default => false,
1213
+ :public => true,
1214
+ :type => Boolean,
1204
1215
  :allowed_from_server => false,
1205
1216
  :dynamic_name => true,
1206
- :deprecated => true,
1207
- :description => deprecated_description(:'instrumentation.mongo', 'If `true`, the agent won\'t install [instrumentation for the Mongo gem](/docs/agents/ruby-agent/frameworks/mongo-instrumentation).')
1217
+ :deprecated => true,
1218
+ :description => deprecated_description(:'instrumentation.mongo', 'If `true`, the agent won\'t install [instrumentation for the Mongo gem](/docs/agents/ruby-agent/frameworks/mongo-instrumentation).')
1208
1219
  },
1209
1220
  :disable_redis => {
1210
- :default => false,
1211
- :public => true,
1212
- :type => Boolean,
1213
- :deprecated => true,
1221
+ :default => false,
1222
+ :public => true,
1223
+ :type => Boolean,
1224
+ :deprecated => true,
1214
1225
  :allowed_from_server => false,
1215
- :description => deprecated_description(:'instrumentation.redis', 'If `true`, the agent won\'t install [instrumentation for Redis](/docs/agents/ruby-agent/frameworks/redis-instrumentation).')
1226
+ :description => deprecated_description(:'instrumentation.redis', 'If `true`, the agent won\'t install [instrumentation for Redis](/docs/agents/ruby-agent/frameworks/redis-instrumentation).')
1216
1227
  },
1217
1228
  :disable_redis_instrumentation => {
1218
- :default => false,
1219
- :public => false,
1220
- :type => Boolean,
1221
- :deprecated => true,
1229
+ :default => false,
1230
+ :public => false,
1231
+ :type => Boolean,
1232
+ :deprecated => true,
1222
1233
  :allowed_from_server => false,
1223
- :description => deprecated_description(:'instrumentation.redis', 'Disables installation of Redis instrumentation. Standard key to use is disable_redis.')
1234
+ :description => deprecated_description(:'instrumentation.redis', 'Disables installation of Redis instrumentation. Standard key to use is disable_redis.')
1224
1235
  },
1225
1236
  :'message_tracer.segment_parameters.enabled' => {
1226
- :default => true,
1227
- :public => true,
1228
- :type => Boolean,
1237
+ :default => true,
1238
+ :public => true,
1239
+ :type => Boolean,
1229
1240
  :allowed_from_server => true,
1230
- :description => 'If `true`, the agent will collect metadata about messages and attach them as segment parameters.'
1241
+ :description => 'If `true`, the agent will collect metadata about messages and attach them as segment parameters.'
1231
1242
  },
1232
1243
  :'slow_sql.enabled' => {
1233
1244
  :default => value_of(:'transaction_tracer.enabled'),
@@ -1291,15 +1302,16 @@ module NewRelic
1291
1302
  :type => Boolean,
1292
1303
  :deprecated => true,
1293
1304
  :allowed_from_server => false,
1294
- :description => 'Deprecated; use [`error_collector.attributes.enabled`](#error_collector-attributes-enabled) instead.'
1305
+ :description => 'Use [`error_collector.attributes.enabled`](#error_collector-attributes-enabled) instead.'
1295
1306
  },
1296
1307
  :'error_collector.ignore_errors' => {
1297
1308
  :default => 'ActionController::RoutingError,Sinatra::NotFound',
1298
1309
  :public => true,
1299
1310
  :type => String,
1311
+ :deprecated => true,
1300
1312
  :allowed_from_server => true,
1301
1313
  :dynamic_name => true,
1302
- :description => 'DEPRECATED; use `error_collector.ignore_classes` instead. Specify a comma-delimited list of error classes that the agent should ignore.'
1314
+ :description => 'Use `error_collector.ignore_classes` instead. Specify a comma-delimited list of error classes that the agent should ignore.'
1303
1315
  },
1304
1316
  :'error_collector.ignore_classes' => {
1305
1317
  :default => [],
@@ -1426,7 +1438,7 @@ module NewRelic
1426
1438
  :type => Boolean,
1427
1439
  :deprecated => true,
1428
1440
  :allowed_from_server => false,
1429
- :description => 'Deprecated; use [`browser_monitoring.attributes.enabled`](#browser_monitoring-attributes-enabled) instead.'
1441
+ :description => 'Use [`browser_monitoring.attributes.enabled`](#browser_monitoring-attributes-enabled) instead.'
1430
1442
  },
1431
1443
  :'browser_monitoring.loader' => {
1432
1444
  :default => DefaultSource.browser_monitoring_loader,
@@ -1554,7 +1566,7 @@ module NewRelic
1554
1566
  :type => Boolean,
1555
1567
  :deprecated => true,
1556
1568
  :allowed_from_server => false,
1557
- :description => 'Deprecated; use [`transaction_events.attributes.enabled`](#transaction_events-attributes-enabled) instead.'
1569
+ :description => 'Use [`transaction_events.attributes.enabled`](#transaction_events-attributes-enabled) instead.'
1558
1570
  },
1559
1571
  :restart_thread_in_children => {
1560
1572
  :default => true,
@@ -1578,71 +1590,71 @@ module NewRelic
1578
1590
  :description => 'Backports the faster ActiveRecord connection lookup introduced in Rails 6, which improves agent performance when instrumenting ActiveRecord. Note that this setting may not be compatible with other gems that patch ActiveRecord.'
1579
1591
  },
1580
1592
  :disable_vm_sampler => {
1581
- :default => false,
1582
- :public => true,
1583
- :type => Boolean,
1593
+ :default => false,
1594
+ :public => true,
1595
+ :type => Boolean,
1584
1596
  :dynamic_name => true,
1585
1597
  :allowed_from_server => false,
1586
- :description => 'If `true`, the agent won\'t [sample performance measurements from the Ruby VM](/docs/agents/ruby-agent/features/ruby-vm-measurements).'
1598
+ :description => 'If `true`, the agent won\'t [sample performance measurements from the Ruby VM](/docs/agents/ruby-agent/features/ruby-vm-measurements).'
1587
1599
  },
1588
1600
  :disable_memory_sampler => {
1589
- :default => false,
1590
- :public => true,
1591
- :type => Boolean,
1601
+ :default => false,
1602
+ :public => true,
1603
+ :type => Boolean,
1592
1604
  :dynamic_name => true,
1593
1605
  :allowed_from_server => false,
1594
- :description => 'If `true`, the agent won\'t sample the memory usage of the host process.'
1606
+ :description => 'If `true`, the agent won\'t sample the memory usage of the host process.'
1595
1607
  },
1596
1608
  :disable_cpu_sampler => {
1597
- :default => false,
1598
- :public => true,
1599
- :type => Boolean,
1609
+ :default => false,
1610
+ :public => true,
1611
+ :type => Boolean,
1600
1612
  :dynamic_name => true,
1601
1613
  :allowed_from_server => false,
1602
- :description => 'If `true`, the agent won\'t sample the CPU usage of the host process.'
1614
+ :description => 'If `true`, the agent won\'t sample the CPU usage of the host process.'
1603
1615
  },
1604
1616
  :disable_delayed_job_sampler => {
1605
- :default => false,
1606
- :public => true,
1607
- :type => Boolean,
1617
+ :default => false,
1618
+ :public => true,
1619
+ :type => Boolean,
1608
1620
  :dynamic_name => true,
1609
1621
  :allowed_from_server => false,
1610
- :description => 'If `true`, the agent won\'t measure the depth of Delayed Job queues.'
1622
+ :description => 'If `true`, the agent won\'t measure the depth of Delayed Job queues.'
1611
1623
  },
1612
1624
  :disable_active_record_notifications => {
1613
- :default => false,
1614
- :public => true,
1615
- :type => Boolean,
1625
+ :default => false,
1626
+ :public => true,
1627
+ :type => Boolean,
1616
1628
  :dynamic_name => true,
1617
1629
  :allowed_from_server => false,
1618
- :description => 'If `true`, disables instrumentation for ActiveRecord 4, 5, and 6.'
1630
+ :description => 'If `true`, disables instrumentation for ActiveRecord 4, 5, and 6.'
1619
1631
  },
1620
1632
  :disable_bunny => {
1621
- :default => false,
1622
- :public => true,
1623
- :type => Boolean,
1624
- :deprecated => true,
1633
+ :default => false,
1634
+ :public => true,
1635
+ :type => Boolean,
1636
+ :deprecated => true,
1625
1637
  :dynamic_name => true,
1626
1638
  :allowed_from_server => false,
1627
- :description => deprecated_description(:'instrumentation.bunny', 'If `true`, disables instrumentation for the bunny gem.')
1639
+ :description => deprecated_description(:'instrumentation.bunny', 'If `true`, disables instrumentation for the bunny gem.')
1628
1640
  },
1629
1641
  :disable_curb => {
1630
- :default => false,
1631
- :public => true,
1632
- :type => Boolean,
1642
+ :default => false,
1643
+ :public => true,
1644
+ :type => Boolean,
1633
1645
  :deprecated => true,
1634
1646
  :dynamic_name => true,
1635
1647
  :allowed_from_server => false,
1636
- :description => deprecated_description(:'instrumentation.curb', 'If `true`, disables instrumentation for the curb gem.' )
1648
+ :description => deprecated_description(:'instrumentation.curb', 'If `true`, disables instrumentation for the curb gem.')
1637
1649
  },
1638
1650
  :disable_excon => {
1639
- :default => false,
1640
- :public => true,
1641
- :type => Boolean,
1651
+ :default => false,
1652
+ :public => true,
1653
+ :type => Boolean,
1642
1654
  :dynamic_name => true,
1643
- :deprecated => true,
1655
+ :deprecated => true,
1644
1656
  :allowed_from_server => false,
1645
- :description => deprecated_description(:'instrumentation.excon', 'If `true`, disables instrumentation for the excon gem.')
1657
+ :description => deprecated_description(:'instrumentation.excon', 'If `true`, disables instrumentation for the excon gem.')
1646
1658
  },
1647
1659
  :'instrumentation.excon' => {
1648
1660
  :default => instrumentation_value_of(:disable_excon),
@@ -1653,203 +1665,197 @@ module NewRelic
1653
1665
  :description => "Controls auto-instrumentation of Excon at start up. May be one of [enabled|disabled]."
1654
1666
  },
1655
1667
  :disable_httpclient => {
1656
- :default => false,
1657
- :public => true,
1658
- :type => Boolean,
1668
+ :default => false,
1669
+ :public => true,
1670
+ :type => Boolean,
1659
1671
  :dynamic_name => true,
1660
- :deprecated => true,
1672
+ :deprecated => true,
1661
1673
  :allowed_from_server => false,
1662
- :description => deprecated_description(:'instrumentation.httpclient', 'If `true`, disables instrumentation for the httpclient gem.')
1674
+ :description => deprecated_description(:'instrumentation.httpclient', 'If `true`, disables instrumentation for the httpclient gem.')
1663
1675
  },
1664
1676
  :disable_net_http => {
1665
- :default => false,
1666
- :public => true,
1667
- :type => Boolean,
1677
+ :default => false,
1678
+ :public => true,
1679
+ :type => Boolean,
1668
1680
  :dynamic_name => true,
1669
1681
  :allowed_from_server => false,
1670
- :deprecated => true,
1671
- :description => deprecated_description(:'instrumentation.net_http',
1672
- 'If `true`, disables instrumentation for Net::HTTP.'
1673
- )
1682
+ :deprecated => true,
1683
+ :description => deprecated_description(:'instrumentation.net_http',
1684
+ 'If `true`, disables instrumentation for Net::HTTP.')
1674
1685
  },
1675
1686
  :disable_rack => {
1676
- :default => false,
1677
- :public => true,
1678
- :type => Boolean,
1687
+ :default => false,
1688
+ :public => true,
1689
+ :type => Boolean,
1679
1690
  :dynamic_name => true,
1680
1691
  :allowed_from_server => false,
1681
- :deprecated => true,
1682
- :description => deprecated_description(:'instrumentation.rack', 'If `true`, prevents the agent from hooking into the `to_app` method in Rack::Builder to find gems to instrument during application startup.')
1692
+ :deprecated => true,
1693
+ :description => deprecated_description(:'instrumentation.rack', 'If `true`, prevents the agent from hooking into the `to_app` method in Rack::Builder to find gems to instrument during application startup.')
1683
1694
  },
1684
1695
  :disable_rack_urlmap => {
1685
- :default => false,
1686
- :public => true,
1687
- :type => Boolean,
1696
+ :default => false,
1697
+ :public => true,
1698
+ :type => Boolean,
1688
1699
  :dynamic_name => true,
1689
1700
  :allowed_from_server => false,
1690
- :deprecated => true,
1691
- :description => deprecated_description(:'instrumentation.rack_urlmap', 'If `true`, prevents the agent from hooking into Rack::URLMap to install middleware tracing.')
1701
+ :deprecated => true,
1702
+ :description => deprecated_description(:'instrumentation.rack_urlmap', 'If `true`, prevents the agent from hooking into Rack::URLMap to install middleware tracing.')
1692
1703
  },
1693
1704
  :disable_puma_rack => {
1694
- :default => value_of(:disable_rack),
1695
- :public => true,
1696
- :type => Boolean,
1705
+ :default => value_of(:disable_rack),
1706
+ :public => true,
1707
+ :type => Boolean,
1697
1708
  :dynamic_name => true,
1698
1709
  :allowed_from_server => false,
1699
- :deprecated => true,
1700
- :description => deprecated_description(:'instrumentation.puma_rack', 'If `true`, prevents the agent from hooking into the `to_app` method in Puma::Rack::Builder to find gems to instrument during application startup.')
1710
+ :deprecated => true,
1711
+ :description => deprecated_description(:'instrumentation.puma_rack', 'If `true`, prevents the agent from hooking into the `to_app` method in Puma::Rack::Builder to find gems to instrument during application startup.')
1701
1712
  },
1702
1713
  :disable_puma_rack_urlmap => {
1703
- :default => value_of(:disable_rack_urlmap),
1704
- :public => true,
1705
- :type => Boolean,
1714
+ :default => value_of(:disable_rack_urlmap),
1715
+ :public => true,
1716
+ :type => Boolean,
1706
1717
  :dynamic_name => true,
1707
1718
  :allowed_from_server => false,
1708
- :deprecated => true,
1709
- :description => deprecated_description(:'instrumentation.puma_rack_urlmap', 'If `true`, prevents the agent from hooking into Puma::Rack::URLMap to install middleware tracing.')
1719
+ :deprecated => true,
1720
+ :description => deprecated_description(:'instrumentation.puma_rack_urlmap', 'If `true`, prevents the agent from hooking into Puma::Rack::URLMap to install middleware tracing.')
1710
1721
  },
1711
1722
  :disable_typhoeus => {
1712
- :default => false,
1713
- :public => true,
1714
- :type => Boolean,
1723
+ :default => false,
1724
+ :public => true,
1725
+ :type => Boolean,
1715
1726
  :dynamic_name => true,
1716
- :deprecated => true,
1727
+ :deprecated => true,
1717
1728
  :allowed_from_server => false,
1718
- :description => deprecated_description(:'instrumentation.typhoeus', 'If `true`, the agent won\'t install instrumentation for the typhoeus gem.' )
1729
+ :description => deprecated_description(:'instrumentation.typhoeus', 'If `true`, the agent won\'t install instrumentation for the typhoeus gem.')
1719
1730
  },
1720
1731
  :disable_httprb => {
1721
- :default => false,
1722
- :public => true,
1723
- :type => Boolean,
1732
+ :default => false,
1733
+ :public => true,
1734
+ :type => Boolean,
1724
1735
  :dynamic_name => true,
1725
- :deprecated => true,
1736
+ :deprecated => true,
1726
1737
  :allowed_from_server => false,
1727
- :description => deprecated_description(:'instrumentation.httprb', 'If `true`, the agent won\'t install instrumentation for the http.rb gem.' )
1738
+ :description => deprecated_description(:'instrumentation.httprb', 'If `true`, the agent won\'t install instrumentation for the http.rb gem.')
1728
1739
  },
1729
1740
  :disable_middleware_instrumentation => {
1730
- :default => false,
1731
- :public => true,
1732
- :type => Boolean,
1741
+ :default => false,
1742
+ :public => true,
1743
+ :type => Boolean,
1733
1744
  :allowed_from_server => false,
1734
- :description => 'If `true`, the agent won\'t wrap third-party middlewares in instrumentation (regardless of whether they are installed via Rack::Builder or Rails).'
1745
+ :description => 'If `true`, the agent won\'t wrap third-party middlewares in instrumentation (regardless of whether they are installed via Rack::Builder or Rails).'
1735
1746
  },
1736
1747
  :disable_rails_middleware => {
1737
- :default => false,
1738
- :public => false,
1739
- :type => Boolean,
1748
+ :default => false,
1749
+ :public => false,
1750
+ :type => Boolean,
1740
1751
  :allowed_from_server => false,
1741
- :description => 'Internal name for controlling Rails 3+ middleware instrumentation'
1752
+ :description => 'Internal name for controlling Rails 3+ middleware instrumentation'
1742
1753
  },
1743
1754
  :'heroku.use_dyno_names' => {
1744
- :default => true,
1745
- :public => true,
1746
- :type => Boolean,
1755
+ :default => true,
1756
+ :public => true,
1757
+ :type => Boolean,
1747
1758
  :allowed_from_server => false,
1748
- :description => 'If `true`, the agent uses Heroku dyno names as the hostname.'
1759
+ :description => 'If `true`, the agent uses Heroku dyno names as the hostname.'
1749
1760
  },
1750
1761
  :'heroku.dyno_name_prefixes_to_shorten' => {
1751
- :default => ['scheduler', 'run'],
1752
- :public => true,
1753
- :type => Array,
1762
+ :default => ['scheduler', 'run'],
1763
+ :public => true,
1764
+ :type => Array,
1754
1765
  :allowed_from_server => false,
1755
- :transform => DefaultSource.method(:convert_to_list),
1756
- :description => 'Ordinarily the agent reports dyno names with a trailing dot and process ID (for example, <b>worker.3</b>). You can remove this trailing data by specifying the prefixes you want to report without trailing data (for example, <b>worker</b>).'
1766
+ :transform => DefaultSource.method(:convert_to_list),
1767
+ :description => 'Ordinarily the agent reports dyno names with a trailing dot and process ID (for example, <b>worker.3</b>). You can remove this trailing data by specifying the prefixes you want to report without trailing data (for example, <b>worker</b>).'
1757
1768
  },
1758
1769
  :'process_host.display_name' => {
1759
- :default => Proc.new{ NewRelic::Agent::Hostname.get },
1760
- :public => true,
1761
- :type => String,
1770
+ :default => Proc.new { NewRelic::Agent::Hostname.get },
1771
+ :public => true,
1772
+ :type => String,
1762
1773
  :allowed_from_server => false,
1763
- :description => 'Specify a custom host name for [display in the New Relic UI](/docs/apm/new-relic-apm/maintenance/add-rename-remove-hosts#display_name).'
1774
+ :description => 'Specify a custom host name for [display in the New Relic UI](/docs/apm/new-relic-apm/maintenance/add-rename-remove-hosts#display_name).'
1764
1775
  },
1765
1776
  :labels => {
1766
- :default => '',
1767
- :public => true,
1768
- :type => String,
1777
+ :default => '',
1778
+ :public => true,
1779
+ :type => String,
1769
1780
  :allowed_from_server => false,
1770
- :description => 'A dictionary of [label names](/docs/data-analysis/user-interface-functions/labels-categories-organize-your-apps-servers) and values that will be applied to the data sent from this agent. May also be expressed as a semicolon-delimited `;` string of colon-separated `:` pairs. For example, `<var>Server</var>:<var>One</var>;<var>Data Center</var>:<var>Primary</var>`.'
1781
+ :description => 'A dictionary of [label names](/docs/data-analysis/user-interface-functions/labels-categories-organize-your-apps-servers) and values that will be applied to the data sent from this agent. May also be expressed as a semicolon-delimited `;` string of colon-separated `:` pairs. For example, `<var>Server</var>:<var>One</var>;<var>Data Center</var>:<var>Primary</var>`.'
1771
1782
  },
1772
1783
  :aggressive_keepalive => {
1773
- :default => true,
1774
- :public => false,
1775
- :type => Boolean,
1784
+ :default => true,
1785
+ :public => false,
1786
+ :type => Boolean,
1776
1787
  :allowed_from_server => true,
1777
- :description => 'If true, attempt to keep the TCP connection to the collector alive between harvests.'
1788
+ :description => 'If true, attempt to keep the TCP connection to the collector alive between harvests.'
1778
1789
  },
1779
1790
  :keep_alive_timeout => {
1780
- :default => 60,
1781
- :public => false,
1782
- :type => Integer,
1791
+ :default => 60,
1792
+ :public => false,
1793
+ :type => Integer,
1783
1794
  :allowed_from_server => true,
1784
- :description => 'Timeout for keep alive on TCP connection to collector if supported by Ruby version. Only used in conjunction when aggressive_keepalive is enabled.'
1795
+ :description => 'Timeout for keep alive on TCP connection to collector if supported by Ruby version. Only used in conjunction when aggressive_keepalive is enabled.'
1785
1796
  },
1786
1797
  :ca_bundle_path => {
1787
- :default => nil,
1788
- :allow_nil => true,
1789
- :public => true,
1790
- :type => String,
1798
+ :default => nil,
1799
+ :allow_nil => true,
1800
+ :public => true,
1801
+ :type => String,
1791
1802
  :allowed_from_server => false,
1792
- :description => "Manual override for the path to your local CA bundle. This CA bundle will be used to validate the SSL certificate presented by New Relic\'s data collection service."
1803
+ :description => "Manual override for the path to your local CA bundle. This CA bundle will be used to validate the SSL certificate presented by New Relic\'s data collection service."
1793
1804
  },
1794
1805
  :'rules.ignore_url_regexes' => {
1795
- :default => [],
1796
- :public => true,
1797
- :type => Array,
1806
+ :default => [],
1807
+ :public => true,
1808
+ :type => Array,
1798
1809
  :allowed_from_server => true,
1799
- :transform => DefaultSource.method(:convert_to_regexp_list),
1800
- :description => 'Define transactions you want the agent to ignore, by specifying a list of patterns matching the URI you want to ignore.' \
1801
- '*Note:* This will only ignore transaction events, not spans or traces from the same transation. See documentation on ' \
1802
- '(Ignoring Specific Transactions)[https://docs.newrelic.com/docs/agents/ruby-agent/api-guides/ignoring-specific-transactions/#config-ignoring] ' \
1803
- 'for more details.'
1810
+ :transform => DefaultSource.method(:convert_to_regexp_list),
1811
+ :description => 'Define transactions you want the agent to ignore, by specifying a list of patterns matching the URI you want to ignore.'
1804
1812
  },
1805
1813
  :'synthetics.traces_limit' => {
1806
- :default => 20,
1807
- :public => false,
1808
- :type => Integer,
1814
+ :default => 20,
1815
+ :public => false,
1816
+ :type => Integer,
1809
1817
  :allowed_from_server => true,
1810
- :description => 'Maximum number of synthetics transaction traces to hold for a given harvest'
1818
+ :description => 'Maximum number of synthetics transaction traces to hold for a given harvest'
1811
1819
  },
1812
1820
  :'synthetics.events_limit' => {
1813
- :default => 200,
1814
- :public => false,
1815
- :type => Integer,
1821
+ :default => 200,
1822
+ :public => false,
1823
+ :type => Integer,
1816
1824
  :allowed_from_server => true,
1817
- :description => 'Maximum number of synthetics transaction events to hold for a given harvest'
1825
+ :description => 'Maximum number of synthetics transaction events to hold for a given harvest'
1818
1826
  },
1819
1827
  :'custom_insights_events.enabled' => {
1820
- :default => true,
1821
- :public => true,
1822
- :type => Boolean,
1828
+ :default => true,
1829
+ :public => true,
1830
+ :type => Boolean,
1823
1831
  :allowed_from_server => true,
1824
- :description => 'If `true`, the agent captures [New Relic Insights custom events](/docs/insights/new-relic-insights/adding-querying-data/inserting-custom-events-new-relic-apm-agents).'
1832
+ :description => 'If `true`, the agent captures [New Relic Insights custom events](/docs/insights/new-relic-insights/adding-querying-data/inserting-custom-events-new-relic-apm-agents).'
1825
1833
  },
1826
1834
  :'custom_insights_events.max_samples_stored' => {
1827
- :default => 1000,
1828
- :public => true,
1829
- :type => Integer,
1835
+ :default => 1000,
1836
+ :public => true,
1837
+ :type => Integer,
1830
1838
  :allowed_from_server => true,
1831
- :description => 'Specify a maximum number of custom Insights events to buffer in memory at a time.',
1839
+ :description => 'Specify a maximum number of custom Insights events to buffer in memory at a time.',
1832
1840
  :dynamic_name => true
1833
1841
  },
1834
1842
  :disable_grape_instrumentation => {
1835
- :default => false,
1836
- :public => false,
1837
- :type => Boolean,
1843
+ :default => false,
1844
+ :public => false,
1845
+ :type => Boolean,
1838
1846
  :allowed_from_server => false,
1839
- :deprecated => true,
1840
- :description => deprecated_description(:'instrumentation.grape',
1841
- 'If `true`, the agent won\'t install Grape instrumentation.'
1842
- )
1847
+ :deprecated => true,
1848
+ :description => deprecated_description(:'instrumentation.grape',
1849
+ 'If `true`, the agent won\'t install Grape instrumentation.')
1843
1850
  },
1844
1851
  :disable_grape => {
1845
- :default => false,
1846
- :public => true,
1847
- :type => Boolean,
1852
+ :default => false,
1853
+ :public => true,
1854
+ :type => Boolean,
1848
1855
  :allowed_from_server => false,
1849
- :deprecated => true,
1850
- :description => deprecated_description(:'instrumentation.grape',
1851
- 'If `true`, the agent won\'t install Grape instrumentation.'
1852
- )
1856
+ :deprecated => true,
1857
+ :description => deprecated_description(:'instrumentation.grape',
1858
+ 'If `true`, the agent won\'t install Grape instrumentation.')
1853
1859
  },
1854
1860
  :'instrumentation.grape' => {
1855
1861
  :default => instrumentation_value_of(:disable_grape_instrumentation),
@@ -1860,261 +1866,261 @@ module NewRelic
1860
1866
  :description => "Controls auto-instrumentation of Grape at start up. May be one of [auto|prepend|chain|disabled]."
1861
1867
  },
1862
1868
  :'attributes.enabled' => {
1863
- :default => true,
1864
- :public => true,
1865
- :type => Boolean,
1869
+ :default => true,
1870
+ :public => true,
1871
+ :type => Boolean,
1866
1872
  :allowed_from_server => false,
1867
1873
  :description => 'If `true`, enables capture of attributes for all destinations.'
1868
1874
  },
1869
1875
  :'transaction_tracer.attributes.enabled' => {
1870
- :default => value_of(:'transaction_tracer.capture_attributes'),
1871
- :public => true,
1872
- :type => Boolean,
1876
+ :default => value_of(:'transaction_tracer.capture_attributes'),
1877
+ :public => true,
1878
+ :type => Boolean,
1873
1879
  :allowed_from_server => false,
1874
1880
  :description => 'If `true`, the agent captures attributes from transaction traces.'
1875
1881
  },
1876
1882
  :'transaction_events.attributes.enabled' => {
1877
- :default => value_of(:'analytics_events.capture_attributes'),
1878
- :public => true,
1879
- :type => Boolean,
1883
+ :default => value_of(:'analytics_events.capture_attributes'),
1884
+ :public => true,
1885
+ :type => Boolean,
1880
1886
  :allowed_from_server => false,
1881
1887
  :description => 'If `true`, the agent captures attributes from transaction events.'
1882
1888
  },
1883
1889
  :'error_collector.attributes.enabled' => {
1884
- :default => value_of(:'error_collector.capture_attributes'),
1885
- :public => true,
1886
- :type => Boolean,
1890
+ :default => value_of(:'error_collector.capture_attributes'),
1891
+ :public => true,
1892
+ :type => Boolean,
1887
1893
  :allowed_from_server => false,
1888
1894
  :description => 'If `true`, the agent captures attributes from error collection.'
1889
1895
  },
1890
1896
  :'browser_monitoring.attributes.enabled' => {
1891
- :default => value_of(:'browser_monitoring.capture_attributes'),
1892
- :public => true,
1893
- :type => Boolean,
1897
+ :default => value_of(:'browser_monitoring.capture_attributes'),
1898
+ :public => true,
1899
+ :type => Boolean,
1894
1900
  :allowed_from_server => false,
1895
1901
  :description => 'If `true`, the agent captures attributes from browser monitoring.'
1896
1902
  },
1897
1903
  :'span_events.attributes.enabled' => {
1898
- :default => true,
1899
- :public => true,
1900
- :type => Boolean,
1904
+ :default => true,
1905
+ :public => true,
1906
+ :type => Boolean,
1901
1907
  :allowed_from_server => false,
1902
1908
  :description => 'If `true`, the agent captures attributes on span events.'
1903
1909
  },
1904
1910
  :'transaction_segments.attributes.enabled' => {
1905
- :default => true,
1906
- :public => true,
1907
- :type => Boolean,
1911
+ :default => true,
1912
+ :public => true,
1913
+ :type => Boolean,
1908
1914
  :allowed_from_server => false,
1909
1915
  :description => 'If `true`, the agent captures attributes on transaction segments.'
1910
1916
  },
1911
1917
  :'attributes.exclude' => {
1912
- :default => [],
1913
- :public => true,
1914
- :type => Array,
1918
+ :default => [],
1919
+ :public => true,
1920
+ :type => Array,
1915
1921
  :allowed_from_server => false,
1916
- :transform => DefaultSource.method(:convert_to_list),
1922
+ :transform => DefaultSource.method(:convert_to_list),
1917
1923
  :description => 'Prefix of attributes to exclude from all destinations. Allows `*` as wildcard at end.'
1918
1924
  },
1919
1925
  :'transaction_tracer.attributes.exclude' => {
1920
- :default => [],
1921
- :public => true,
1922
- :type => Array,
1926
+ :default => [],
1927
+ :public => true,
1928
+ :type => Array,
1923
1929
  :allowed_from_server => false,
1924
- :transform => DefaultSource.method(:convert_to_list),
1930
+ :transform => DefaultSource.method(:convert_to_list),
1925
1931
  :description => 'Prefix of attributes to exclude from transaction traces. Allows `*` as wildcard at end.'
1926
1932
  },
1927
1933
  :'transaction_events.attributes.exclude' => {
1928
- :default => [],
1929
- :public => true,
1930
- :type => Array,
1934
+ :default => [],
1935
+ :public => true,
1936
+ :type => Array,
1931
1937
  :allowed_from_server => false,
1932
- :transform => DefaultSource.method(:convert_to_list),
1938
+ :transform => DefaultSource.method(:convert_to_list),
1933
1939
  :description => 'Prefix of attributes to exclude from transaction events. Allows `*` as wildcard at end.'
1934
1940
  },
1935
1941
  :'error_collector.attributes.exclude' => {
1936
- :default => [],
1937
- :public => true,
1938
- :type => Array,
1942
+ :default => [],
1943
+ :public => true,
1944
+ :type => Array,
1939
1945
  :allowed_from_server => false,
1940
- :transform => DefaultSource.method(:convert_to_list),
1946
+ :transform => DefaultSource.method(:convert_to_list),
1941
1947
  :description => 'Prefix of attributes to exclude from error collection. Allows `*` as wildcard at end.'
1942
1948
  },
1943
1949
  :'browser_monitoring.attributes.exclude' => {
1944
- :default => [],
1945
- :public => true,
1946
- :type => Array,
1950
+ :default => [],
1951
+ :public => true,
1952
+ :type => Array,
1947
1953
  :allowed_from_server => false,
1948
- :transform => DefaultSource.method(:convert_to_list),
1954
+ :transform => DefaultSource.method(:convert_to_list),
1949
1955
  :description => 'Prefix of attributes to exclude from browser monitoring. Allows `*` as wildcard at end.'
1950
1956
  },
1951
1957
  :'span_events.attributes.exclude' => {
1952
- :default => [],
1953
- :public => true,
1954
- :type => Array,
1958
+ :default => [],
1959
+ :public => true,
1960
+ :type => Array,
1955
1961
  :allowed_from_server => false,
1956
- :transform => DefaultSource.method(:convert_to_list),
1962
+ :transform => DefaultSource.method(:convert_to_list),
1957
1963
  :description => 'Prefix of attributes to exclude from span events. Allows `*` as wildcard at end.'
1958
1964
  },
1959
1965
  :'transaction_segments.attributes.exclude' => {
1960
- :default => [],
1961
- :public => true,
1962
- :type => Array,
1966
+ :default => [],
1967
+ :public => true,
1968
+ :type => Array,
1963
1969
  :allowed_from_server => false,
1964
- :transform => DefaultSource.method(:convert_to_list),
1970
+ :transform => DefaultSource.method(:convert_to_list),
1965
1971
  :description => 'Prefix of attributes to exclude from transaction segments. Allows `*` as wildcard at end.'
1966
1972
  },
1967
1973
  :'attributes.include' => {
1968
- :default => [],
1969
- :public => true,
1970
- :type => Array,
1974
+ :default => [],
1975
+ :public => true,
1976
+ :type => Array,
1971
1977
  :allowed_from_server => false,
1972
- :transform => DefaultSource.method(:convert_to_list),
1978
+ :transform => DefaultSource.method(:convert_to_list),
1973
1979
  :description => 'Prefix of attributes to include in all destinations. Allows `*` as wildcard at end.'
1974
1980
  },
1975
1981
  :'transaction_tracer.attributes.include' => {
1976
- :default => [],
1977
- :public => true,
1978
- :type => Array,
1982
+ :default => [],
1983
+ :public => true,
1984
+ :type => Array,
1979
1985
  :allowed_from_server => false,
1980
- :transform => DefaultSource.method(:convert_to_list),
1986
+ :transform => DefaultSource.method(:convert_to_list),
1981
1987
  :description => 'Prefix of attributes to include in transaction traces. Allows `*` as wildcard at end.'
1982
1988
  },
1983
1989
  :'transaction_events.attributes.include' => {
1984
- :default => [],
1985
- :public => true,
1986
- :type => Array,
1990
+ :default => [],
1991
+ :public => true,
1992
+ :type => Array,
1987
1993
  :allowed_from_server => false,
1988
- :transform => DefaultSource.method(:convert_to_list),
1994
+ :transform => DefaultSource.method(:convert_to_list),
1989
1995
  :description => 'Prefix of attributes to include in transaction events. Allows `*` as wildcard at end.'
1990
1996
  },
1991
1997
  :'error_collector.attributes.include' => {
1992
- :default => [],
1993
- :public => true,
1994
- :type => Array,
1998
+ :default => [],
1999
+ :public => true,
2000
+ :type => Array,
1995
2001
  :allowed_from_server => false,
1996
- :transform => DefaultSource.method(:convert_to_list),
2002
+ :transform => DefaultSource.method(:convert_to_list),
1997
2003
  :description => 'Prefix of attributes to include in error collection. Allows `*` as wildcard at end.'
1998
2004
  },
1999
2005
  :'browser_monitoring.attributes.include' => {
2000
- :default => [],
2001
- :public => true,
2002
- :type => Array,
2006
+ :default => [],
2007
+ :public => true,
2008
+ :type => Array,
2003
2009
  :allowed_from_server => false,
2004
- :transform => DefaultSource.method(:convert_to_list),
2010
+ :transform => DefaultSource.method(:convert_to_list),
2005
2011
  :description => 'Prefix of attributes to include in browser monitoring. Allows `*` as wildcard at end.'
2006
2012
  },
2007
2013
  :'span_events.attributes.include' => {
2008
- :default => [],
2009
- :public => true,
2010
- :type => Array,
2014
+ :default => [],
2015
+ :public => true,
2016
+ :type => Array,
2011
2017
  :allowed_from_server => false,
2012
- :transform => DefaultSource.method(:convert_to_list),
2018
+ :transform => DefaultSource.method(:convert_to_list),
2013
2019
  :description => 'Prefix of attributes to include on span events. Allows `*` as wildcard at end.'
2014
2020
  },
2015
2021
  :'transaction_segments.attributes.include' => {
2016
- :default => [],
2017
- :public => true,
2018
- :type => Array,
2022
+ :default => [],
2023
+ :public => true,
2024
+ :type => Array,
2019
2025
  :allowed_from_server => false,
2020
- :transform => DefaultSource.method(:convert_to_list),
2026
+ :transform => DefaultSource.method(:convert_to_list),
2021
2027
  :description => 'Prefix of attributes to include on transaction segments. Allows `*` as wildcard at end.'
2022
2028
  },
2023
2029
  :'custom_attributes.enabled' => {
2024
- :default => true,
2025
- :public => true,
2026
- :type => Boolean,
2030
+ :default => true,
2031
+ :public => true,
2032
+ :type => Boolean,
2027
2033
  :allowed_from_server => false,
2028
2034
  :description => 'If `false`, custom attributes will not be sent on Insights events.'
2029
2035
  },
2030
2036
  :'utilization.detect_aws' => {
2031
- :default => true,
2032
- :public => true,
2033
- :type => Boolean,
2037
+ :default => true,
2038
+ :public => true,
2039
+ :type => Boolean,
2034
2040
  :allowed_from_server => false,
2035
2041
  :dynamic_name => true,
2036
2042
  :description => 'If `true`, the agent automatically detects that it is running in an AWS environment.'
2037
2043
  },
2038
2044
  :'utilization.detect_azure' => {
2039
- :default => true,
2040
- :public => true,
2041
- :type => Boolean,
2045
+ :default => true,
2046
+ :public => true,
2047
+ :type => Boolean,
2042
2048
  :allowed_from_server => false,
2043
2049
  :dynamic_name => true,
2044
- :description => 'If `true`, the agent automatically detects that it is running in an Azure environment.'
2050
+ :description => 'If `true`, the agent automatically detects that it is running in an Azure environment.'
2045
2051
  },
2046
2052
  :'utilization.detect_gcp' => {
2047
- :default => true,
2048
- :public => true,
2049
- :type => Boolean,
2053
+ :default => true,
2054
+ :public => true,
2055
+ :type => Boolean,
2050
2056
  :allowed_from_server => false,
2051
2057
  :dynamic_name => true,
2052
2058
  :description => 'If `true`, the agent automatically detects that it is running in an Google Cloud Platform environment.'
2053
2059
  },
2054
2060
  :'utilization.detect_pcf' => {
2055
- :default => true,
2056
- :public => true,
2057
- :type => Boolean,
2061
+ :default => true,
2062
+ :public => true,
2063
+ :type => Boolean,
2058
2064
  :allowed_from_server => false,
2059
2065
  :dynamic_name => true,
2060
2066
  :description => 'If `true`, the agent automatically detects that it is running in a Pivotal Cloud Foundry environment.'
2061
2067
  },
2062
2068
  :'utilization.detect_docker' => {
2063
- :default => true,
2064
- :public => true,
2065
- :type => Boolean,
2069
+ :default => true,
2070
+ :public => true,
2071
+ :type => Boolean,
2066
2072
  :allowed_from_server => false,
2067
2073
  :description => 'If `true`, the agent automatically detects that it is running in Docker.'
2068
2074
  },
2069
2075
  :'utilization.detect_kubernetes' => {
2070
- :default => true,
2071
- :public => true,
2072
- :type => Boolean,
2076
+ :default => true,
2077
+ :public => true,
2078
+ :type => Boolean,
2073
2079
  :allowed_from_server => false,
2074
2080
  :description => 'If `true`, the agent automatically detects that it is running in Kubernetes.'
2075
2081
  },
2076
2082
  :'utilization.billing_hostname' => {
2077
- :default => nil,
2078
- :allow_nil => true,
2079
- :public => false,
2080
- :type => String,
2083
+ :default => nil,
2084
+ :allow_nil => true,
2085
+ :public => false,
2086
+ :type => String,
2081
2087
  :allowed_from_server => false,
2082
2088
  :description => 'The configured server name by a customer.'
2083
2089
  },
2084
2090
  :'utilization.logical_processors' => {
2085
- :default => nil,
2086
- :allow_nil => true,
2087
- :public => false,
2088
- :type => Integer,
2091
+ :default => nil,
2092
+ :allow_nil => true,
2093
+ :public => false,
2094
+ :type => Integer,
2089
2095
  :allowed_from_server => false,
2090
2096
  :description => 'The total number of hyper-threaded execution contexts available.'
2091
2097
  },
2092
2098
  :'utilization.total_ram_mib' => {
2093
- :default => nil,
2094
- :allow_nil => true,
2095
- :public => false,
2096
- :type => Integer,
2099
+ :default => nil,
2100
+ :allow_nil => true,
2101
+ :public => false,
2102
+ :type => Integer,
2097
2103
  :allowed_from_server => false,
2098
2104
  :description => 'This value represents the total amount of memory available to the host (not the process), in mebibytes (1024 squared or 1,048,576 bytes).'
2099
2105
  },
2100
2106
  :'datastore_tracer.instance_reporting.enabled' => {
2101
- :default => true,
2102
- :public => true,
2103
- :type => Boolean,
2107
+ :default => true,
2108
+ :public => true,
2109
+ :type => Boolean,
2104
2110
  :allowed_from_server => false,
2105
2111
  :description => 'If `false`, the agent will not report datastore instance metrics, nor add `host` or `port_path_or_id` parameters to transaction or slow SQL traces.'
2106
2112
  },
2107
2113
  :'datastore_tracer.database_name_reporting.enabled' => {
2108
- :default => true,
2109
- :public => true,
2110
- :type => Boolean,
2114
+ :default => true,
2115
+ :public => true,
2116
+ :type => Boolean,
2111
2117
  :allowed_from_server => false,
2112
2118
  :description => 'If `false`, the agent will not add `database_name` parameter to transaction or slow sql traces.'
2113
2119
  },
2114
2120
  :'clear_transaction_state_after_fork' => {
2115
- :default => false,
2116
- :public => true,
2117
- :type => Boolean,
2121
+ :default => false,
2122
+ :public => true,
2123
+ :type => Boolean,
2118
2124
  :allowed_from_server => false,
2119
2125
  :description => 'If `true`, the agent will clear `Tracer::State` in `Agent.drop_buffered_data`.'
2120
2126
  },
@@ -2135,9 +2141,9 @@ module NewRelic
2135
2141
  :description => 'The primary id associated with this application.'
2136
2142
  },
2137
2143
  :'distributed_tracing.enabled' => {
2138
- :default => true,
2139
- :public => true,
2140
- :type => Boolean,
2144
+ :default => true,
2145
+ :public => true,
2146
+ :type => Boolean,
2141
2147
  :allowed_from_server => true,
2142
2148
  :description => 'Distributed tracing lets you see the path that a request takes through your distributed system. Enabling distributed tracing changes the behavior of some New Relic features, so carefully consult the [transition guide](/docs/transition-guide-distributed-tracing) before you enable this feature.'
2143
2149
  },