newrelic_rpm 8.2.0 → 8.3.0

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