newrelic_rpm 6.11.0.365 → 6.12.0.367

Sign up to get free protection for your applications and to get access to all the features.
Files changed (285) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -2
  4. data/CHANGELOG.md +73 -5
  5. data/CODE_OF_CONDUCT.md +46 -0
  6. data/CONTRIBUTING.md +56 -12
  7. data/Gemfile +1 -1
  8. data/LICENSE +208 -38
  9. data/README.md +61 -89
  10. data/THIRD_PARTY_NOTICES.md +213 -0
  11. data/bin/nrdebug +1 -1
  12. data/init.rb +1 -1
  13. data/install.rb +1 -1
  14. data/lib/new_relic/agent.rb +12 -3
  15. data/lib/new_relic/agent/adaptive_sampler.rb +1 -1
  16. data/lib/new_relic/agent/agent.rb +8 -1
  17. data/lib/new_relic/agent/agent_logger.rb +1 -1
  18. data/lib/new_relic/agent/attribute_filter.rb +1 -1
  19. data/lib/new_relic/agent/attribute_processing.rb +1 -1
  20. data/lib/new_relic/agent/attributes.rb +3 -1
  21. data/lib/new_relic/agent/audit_logger.rb +1 -1
  22. data/lib/new_relic/agent/autostart.rb +1 -1
  23. data/lib/new_relic/agent/chained_call.rb +1 -1
  24. data/lib/new_relic/agent/commands/agent_command.rb +1 -1
  25. data/lib/new_relic/agent/commands/agent_command_router.rb +1 -1
  26. data/lib/new_relic/agent/commands/thread_profiler_session.rb +1 -1
  27. data/lib/new_relic/agent/configuration.rb +1 -1
  28. data/lib/new_relic/agent/configuration/default_source.rb +1 -1
  29. data/lib/new_relic/agent/configuration/dotted_hash.rb +1 -1
  30. data/lib/new_relic/agent/configuration/environment_source.rb +1 -1
  31. data/lib/new_relic/agent/configuration/event_harvest_config.rb +1 -1
  32. data/lib/new_relic/agent/configuration/high_security_source.rb +1 -1
  33. data/lib/new_relic/agent/configuration/manager.rb +1 -1
  34. data/lib/new_relic/agent/configuration/manual_source.rb +1 -1
  35. data/lib/new_relic/agent/configuration/mask_defaults.rb +1 -1
  36. data/lib/new_relic/agent/configuration/security_policy_source.rb +1 -1
  37. data/lib/new_relic/agent/configuration/server_source.rb +1 -1
  38. data/lib/new_relic/agent/configuration/yaml_source.rb +1 -1
  39. data/lib/new_relic/agent/connect/request_builder.rb +1 -1
  40. data/lib/new_relic/agent/connect/response_handler.rb +1 -1
  41. data/lib/new_relic/agent/custom_event_aggregator.rb +1 -1
  42. data/lib/new_relic/agent/database.rb +1 -1
  43. data/lib/new_relic/agent/database/explain_plan_helpers.rb +1 -1
  44. data/lib/new_relic/agent/database/obfuscation_helpers.rb +1 -1
  45. data/lib/new_relic/agent/database/obfuscator.rb +1 -1
  46. data/lib/new_relic/agent/database/postgres_explain_obfuscator.rb +1 -1
  47. data/lib/new_relic/agent/datastores.rb +1 -1
  48. data/lib/new_relic/agent/datastores/metric_helper.rb +1 -1
  49. data/lib/new_relic/agent/datastores/mongo.rb +1 -1
  50. data/lib/new_relic/agent/datastores/mongo/event_formatter.rb +1 -1
  51. data/lib/new_relic/agent/datastores/mongo/metric_translator.rb +1 -1
  52. data/lib/new_relic/agent/datastores/mongo/obfuscator.rb +1 -1
  53. data/lib/new_relic/agent/datastores/mongo/statement_formatter.rb +1 -1
  54. data/lib/new_relic/agent/datastores/redis.rb +1 -1
  55. data/lib/new_relic/agent/deprecator.rb +1 -1
  56. data/lib/new_relic/agent/distributed_tracing.rb +1 -1
  57. data/lib/new_relic/agent/distributed_tracing/cross_app_payload.rb +1 -1
  58. data/lib/new_relic/agent/distributed_tracing/cross_app_tracing.rb +1 -1
  59. data/lib/new_relic/agent/distributed_tracing/{distributed_trace_intrinsics.rb → distributed_trace_attributes.rb} +9 -5
  60. data/lib/new_relic/agent/distributed_tracing/distributed_trace_metrics.rb +1 -1
  61. data/lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb +1 -1
  62. data/lib/new_relic/agent/distributed_tracing/distributed_trace_transport_type.rb +1 -1
  63. data/lib/new_relic/agent/distributed_tracing/trace_context.rb +1 -1
  64. data/lib/new_relic/agent/distributed_tracing/trace_context_payload.rb +1 -1
  65. data/lib/new_relic/agent/encoding_normalizer.rb +1 -1
  66. data/lib/new_relic/agent/error_collector.rb +1 -1
  67. data/lib/new_relic/agent/error_event_aggregator.rb +1 -1
  68. data/lib/new_relic/agent/error_trace_aggregator.rb +1 -1
  69. data/lib/new_relic/agent/event_aggregator.rb +1 -1
  70. data/lib/new_relic/agent/event_buffer.rb +1 -1
  71. data/lib/new_relic/agent/event_listener.rb +1 -1
  72. data/lib/new_relic/agent/event_loop.rb +1 -1
  73. data/lib/new_relic/agent/external.rb +1 -1
  74. data/lib/new_relic/agent/guid_generator.rb +1 -1
  75. data/lib/new_relic/agent/harvester.rb +1 -1
  76. data/lib/new_relic/agent/heap.rb +1 -1
  77. data/lib/new_relic/agent/hostname.rb +1 -1
  78. data/lib/new_relic/agent/http_clients/abstract.rb +1 -1
  79. data/lib/new_relic/agent/http_clients/curb_wrappers.rb +1 -1
  80. data/lib/new_relic/agent/http_clients/excon_wrappers.rb +1 -1
  81. data/lib/new_relic/agent/http_clients/http_rb_wrappers.rb +1 -1
  82. data/lib/new_relic/agent/http_clients/httpclient_wrappers.rb +1 -1
  83. data/lib/new_relic/agent/http_clients/net_http_wrappers.rb +1 -1
  84. data/lib/new_relic/agent/http_clients/typhoeus_wrappers.rb +1 -1
  85. data/lib/new_relic/agent/http_clients/uri_util.rb +1 -1
  86. data/lib/new_relic/agent/instrumentation.rb +1 -1
  87. data/lib/new_relic/agent/instrumentation/action_cable_subscriber.rb +1 -1
  88. data/lib/new_relic/agent/instrumentation/action_controller_subscriber.rb +1 -1
  89. data/lib/new_relic/agent/instrumentation/action_view_subscriber.rb +1 -1
  90. data/lib/new_relic/agent/instrumentation/active_job.rb +1 -1
  91. data/lib/new_relic/agent/instrumentation/active_merchant.rb +1 -1
  92. data/lib/new_relic/agent/instrumentation/active_record.rb +84 -39
  93. data/lib/new_relic/agent/instrumentation/active_record_helper.rb +82 -24
  94. data/lib/new_relic/agent/instrumentation/active_record_notifications.rb +1 -1
  95. data/lib/new_relic/agent/instrumentation/active_record_prepend.rb +92 -34
  96. data/lib/new_relic/agent/instrumentation/active_record_subscriber.rb +1 -1
  97. data/lib/new_relic/agent/instrumentation/active_storage.rb +1 -1
  98. data/lib/new_relic/agent/instrumentation/active_storage_subscriber.rb +1 -1
  99. data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +24 -8
  100. data/lib/new_relic/agent/instrumentation/authlogic.rb +1 -1
  101. data/lib/new_relic/agent/instrumentation/bunny.rb +74 -28
  102. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +1 -1
  103. data/lib/new_relic/agent/instrumentation/curb.rb +34 -10
  104. data/lib/new_relic/agent/instrumentation/data_mapper.rb +1 -1
  105. data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +61 -25
  106. data/lib/new_relic/agent/instrumentation/excon.rb +1 -1
  107. data/lib/new_relic/agent/instrumentation/excon/connection.rb +1 -1
  108. data/lib/new_relic/agent/instrumentation/excon/middleware.rb +1 -1
  109. data/lib/new_relic/agent/instrumentation/grape.rb +1 -1
  110. data/lib/new_relic/agent/instrumentation/http.rb +1 -1
  111. data/lib/new_relic/agent/instrumentation/httpclient.rb +1 -1
  112. data/lib/new_relic/agent/instrumentation/ignore_actions.rb +1 -1
  113. data/lib/new_relic/agent/instrumentation/memcache.rb +1 -1
  114. data/lib/new_relic/agent/instrumentation/memcache/dalli.rb +1 -1
  115. data/lib/new_relic/agent/instrumentation/merb/controller.rb +1 -1
  116. data/lib/new_relic/agent/instrumentation/merb/errors.rb +1 -1
  117. data/lib/new_relic/agent/instrumentation/middleware_proxy.rb +12 -4
  118. data/lib/new_relic/agent/instrumentation/middleware_tracing.rb +9 -7
  119. data/lib/new_relic/agent/instrumentation/mongo.rb +1 -1
  120. data/lib/new_relic/agent/instrumentation/mongodb_command_subscriber.rb +25 -5
  121. data/lib/new_relic/agent/instrumentation/net.rb +58 -24
  122. data/lib/new_relic/agent/instrumentation/notifications_subscriber.rb +1 -1
  123. data/lib/new_relic/agent/instrumentation/padrino.rb +40 -16
  124. data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +1 -1
  125. data/lib/new_relic/agent/instrumentation/queue_time.rb +1 -1
  126. data/lib/new_relic/agent/instrumentation/rack.rb +36 -13
  127. data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +1 -1
  128. data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +1 -1
  129. data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +1 -1
  130. data/lib/new_relic/agent/instrumentation/rails_middleware.rb +1 -1
  131. data/lib/new_relic/agent/instrumentation/rails_notifications/action_cable.rb +1 -1
  132. data/lib/new_relic/agent/instrumentation/rails_notifications/action_controller.rb +1 -1
  133. data/lib/new_relic/agent/instrumentation/rails_notifications/action_view.rb +1 -1
  134. data/lib/new_relic/agent/instrumentation/rainbows_instrumentation.rb +1 -1
  135. data/lib/new_relic/agent/instrumentation/rake.rb +54 -20
  136. data/lib/new_relic/agent/instrumentation/redis.rb +138 -59
  137. data/lib/new_relic/agent/instrumentation/resque.rb +1 -1
  138. data/lib/new_relic/agent/instrumentation/sequel.rb +1 -1
  139. data/lib/new_relic/agent/instrumentation/sequel_helper.rb +1 -1
  140. data/lib/new_relic/agent/instrumentation/sidekiq.rb +5 -5
  141. data/lib/new_relic/agent/instrumentation/sinatra.rb +62 -23
  142. data/lib/new_relic/agent/instrumentation/sinatra/ignorer.rb +1 -1
  143. data/lib/new_relic/agent/instrumentation/sinatra/transaction_namer.rb +1 -1
  144. data/lib/new_relic/agent/instrumentation/sunspot.rb +1 -1
  145. data/lib/new_relic/agent/instrumentation/typhoeus.rb +1 -1
  146. data/lib/new_relic/agent/internal_agent_error.rb +1 -1
  147. data/lib/new_relic/agent/javascript_instrumentor.rb +1 -1
  148. data/lib/new_relic/agent/log_once.rb +1 -1
  149. data/lib/new_relic/agent/logging.rb +1 -1
  150. data/lib/new_relic/agent/memory_logger.rb +1 -1
  151. data/lib/new_relic/agent/messaging.rb +1 -1
  152. data/lib/new_relic/agent/method_tracer.rb +1 -1
  153. data/lib/new_relic/agent/method_tracer_helpers.rb +1 -1
  154. data/lib/new_relic/agent/monitors.rb +1 -1
  155. data/lib/new_relic/agent/monitors/cross_app_monitor.rb +1 -1
  156. data/lib/new_relic/agent/monitors/distributed_tracing_monitor.rb +1 -1
  157. data/lib/new_relic/agent/monitors/inbound_request_monitor.rb +1 -1
  158. data/lib/new_relic/agent/monitors/synthetics_monitor.rb +1 -1
  159. data/lib/new_relic/agent/new_relic_service.rb +1 -1
  160. data/lib/new_relic/agent/new_relic_service/encoders.rb +1 -1
  161. data/lib/new_relic/agent/new_relic_service/json_marshaller.rb +1 -1
  162. data/lib/new_relic/agent/new_relic_service/marshaller.rb +1 -1
  163. data/lib/new_relic/agent/new_relic_service/security_policy_settings.rb +1 -1
  164. data/lib/new_relic/agent/noticible_error.rb +1 -1
  165. data/lib/new_relic/agent/null_logger.rb +1 -1
  166. data/lib/new_relic/agent/obfuscator.rb +1 -1
  167. data/lib/new_relic/agent/parameter_filtering.rb +1 -1
  168. data/lib/new_relic/agent/payload_metric_mapping.rb +1 -1
  169. data/lib/new_relic/agent/pipe_channel_manager.rb +1 -1
  170. data/lib/new_relic/agent/pipe_service.rb +1 -1
  171. data/lib/new_relic/agent/prepend_supportability.rb +1 -1
  172. data/lib/new_relic/agent/priority_sampled_buffer.rb +8 -5
  173. data/lib/new_relic/agent/range_extensions.rb +1 -1
  174. data/lib/new_relic/agent/rules_engine.rb +1 -1
  175. data/lib/new_relic/agent/rules_engine/replacement_rule.rb +1 -1
  176. data/lib/new_relic/agent/rules_engine/segment_terms_rule.rb +1 -1
  177. data/lib/new_relic/agent/sampler.rb +1 -1
  178. data/lib/new_relic/agent/sampler_collection.rb +1 -1
  179. data/lib/new_relic/agent/samplers/cpu_sampler.rb +1 -1
  180. data/lib/new_relic/agent/samplers/delayed_job_sampler.rb +1 -1
  181. data/lib/new_relic/agent/samplers/memory_sampler.rb +1 -1
  182. data/lib/new_relic/agent/samplers/object_sampler.rb +1 -1
  183. data/lib/new_relic/agent/samplers/vm_sampler.rb +1 -1
  184. data/lib/new_relic/agent/span_event_aggregator.rb +1 -1
  185. data/lib/new_relic/agent/span_event_primitive.rb +24 -5
  186. data/lib/new_relic/agent/sql_sampler.rb +4 -4
  187. data/lib/new_relic/agent/stats.rb +1 -1
  188. data/lib/new_relic/agent/stats_engine.rb +1 -1
  189. data/lib/new_relic/agent/stats_engine/gc_profiler.rb +1 -1
  190. data/lib/new_relic/agent/stats_engine/stats_hash.rb +1 -1
  191. data/lib/new_relic/agent/supported_versions.rb +1 -1
  192. data/lib/new_relic/agent/synthetics_event_aggregator.rb +1 -1
  193. data/lib/new_relic/agent/system_info.rb +1 -1
  194. data/lib/new_relic/agent/threading/agent_thread.rb +1 -1
  195. data/lib/new_relic/agent/threading/backtrace_node.rb +1 -1
  196. data/lib/new_relic/agent/threading/backtrace_service.rb +1 -1
  197. data/lib/new_relic/agent/threading/thread_profile.rb +1 -1
  198. data/lib/new_relic/agent/timestamp_sampled_buffer.rb +1 -1
  199. data/lib/new_relic/agent/tracer.rb +1 -1
  200. data/lib/new_relic/agent/transaction.rb +20 -3
  201. data/lib/new_relic/agent/transaction/abstract_segment.rb +3 -2
  202. data/lib/new_relic/agent/transaction/datastore_segment.rb +1 -1
  203. data/lib/new_relic/agent/transaction/distributed_tracer.rb +3 -3
  204. data/lib/new_relic/agent/transaction/distributed_tracing.rb +2 -2
  205. data/lib/new_relic/agent/transaction/external_request_segment.rb +1 -1
  206. data/lib/new_relic/agent/transaction/message_broker_segment.rb +1 -1
  207. data/lib/new_relic/agent/transaction/request_attributes.rb +1 -1
  208. data/lib/new_relic/agent/transaction/segment.rb +18 -2
  209. data/lib/new_relic/agent/transaction/slowest_sample_buffer.rb +1 -1
  210. data/lib/new_relic/agent/transaction/synthetics_sample_buffer.rb +1 -1
  211. data/lib/new_relic/agent/transaction/trace.rb +1 -1
  212. data/lib/new_relic/agent/transaction/trace_builder.rb +1 -1
  213. data/lib/new_relic/agent/transaction/trace_context.rb +1 -1
  214. data/lib/new_relic/agent/transaction/trace_node.rb +1 -1
  215. data/lib/new_relic/agent/transaction/tracing.rb +1 -1
  216. data/lib/new_relic/agent/transaction/transaction_sample_buffer.rb +1 -1
  217. data/lib/new_relic/agent/transaction_error_primitive.rb +3 -3
  218. data/lib/new_relic/agent/transaction_event_aggregator.rb +1 -1
  219. data/lib/new_relic/agent/transaction_event_primitive.rb +3 -3
  220. data/lib/new_relic/agent/transaction_event_recorder.rb +1 -1
  221. data/lib/new_relic/agent/transaction_metrics.rb +1 -1
  222. data/lib/new_relic/agent/transaction_sampler.rb +1 -1
  223. data/lib/new_relic/agent/transaction_time_aggregator.rb +1 -1
  224. data/lib/new_relic/agent/utilization/aws.rb +1 -1
  225. data/lib/new_relic/agent/utilization/azure.rb +1 -1
  226. data/lib/new_relic/agent/utilization/gcp.rb +1 -1
  227. data/lib/new_relic/agent/utilization/pcf.rb +1 -1
  228. data/lib/new_relic/agent/utilization/vendor.rb +1 -1
  229. data/lib/new_relic/agent/utilization_data.rb +1 -1
  230. data/lib/new_relic/agent/vm.rb +1 -1
  231. data/lib/new_relic/agent/vm/jruby_vm.rb +1 -1
  232. data/lib/new_relic/agent/vm/monotonic_gc_profiler.rb +1 -1
  233. data/lib/new_relic/agent/vm/mri_vm.rb +1 -1
  234. data/lib/new_relic/agent/vm/snapshot.rb +1 -1
  235. data/lib/new_relic/agent/worker_loop.rb +1 -1
  236. data/lib/new_relic/cli/command.rb +1 -1
  237. data/lib/new_relic/cli/commands/deployments.rb +1 -1
  238. data/lib/new_relic/cli/commands/install.rb +1 -1
  239. data/lib/new_relic/coerce.rb +1 -1
  240. data/lib/new_relic/collection_helper.rb +1 -1
  241. data/lib/new_relic/constants.rb +1 -1
  242. data/lib/new_relic/control.rb +1 -1
  243. data/lib/new_relic/control/class_methods.rb +1 -1
  244. data/lib/new_relic/control/frameworks.rb +1 -1
  245. data/lib/new_relic/control/frameworks/external.rb +1 -1
  246. data/lib/new_relic/control/frameworks/merb.rb +1 -1
  247. data/lib/new_relic/control/frameworks/rails.rb +1 -1
  248. data/lib/new_relic/control/frameworks/rails3.rb +1 -1
  249. data/lib/new_relic/control/frameworks/rails4.rb +1 -1
  250. data/lib/new_relic/control/frameworks/rails_notifications.rb +1 -1
  251. data/lib/new_relic/control/frameworks/ruby.rb +1 -1
  252. data/lib/new_relic/control/frameworks/sinatra.rb +1 -1
  253. data/lib/new_relic/control/instance_methods.rb +1 -1
  254. data/lib/new_relic/control/instrumentation.rb +1 -1
  255. data/lib/new_relic/control/server_methods.rb +1 -1
  256. data/lib/new_relic/delayed_job_injection.rb +1 -1
  257. data/lib/new_relic/dependency_detection.rb +1 -1
  258. data/lib/new_relic/environment_report.rb +1 -1
  259. data/lib/new_relic/helper.rb +1 -1
  260. data/lib/new_relic/language_support.rb +1 -1
  261. data/lib/new_relic/latest_changes.rb +2 -2
  262. data/lib/new_relic/local_environment.rb +1 -1
  263. data/lib/new_relic/metric_data.rb +1 -1
  264. data/lib/new_relic/metric_spec.rb +1 -1
  265. data/lib/new_relic/metrics.rb +1 -1
  266. data/lib/new_relic/noticed_error.rb +1 -1
  267. data/lib/new_relic/rack.rb +1 -1
  268. data/lib/new_relic/rack/agent_hooks.rb +1 -1
  269. data/lib/new_relic/rack/agent_middleware.rb +1 -1
  270. data/lib/new_relic/rack/browser_monitoring.rb +1 -1
  271. data/lib/new_relic/recipes.rb +1 -1
  272. data/lib/new_relic/recipes/capistrano3.rb +1 -1
  273. data/lib/new_relic/recipes/capistrano_legacy.rb +1 -1
  274. data/lib/new_relic/supportability_helper.rb +1 -1
  275. data/lib/new_relic/version.rb +2 -2
  276. data/lib/newrelic_rpm.rb +1 -1
  277. data/lib/sequel/extensions/newrelic_instrumentation.rb +1 -1
  278. data/lib/sequel/plugins/newrelic_instrumentation.rb +1 -1
  279. data/lib/tasks/all.rb +1 -1
  280. data/lib/tasks/multiverse.rb +1 -1
  281. data/lib/tasks/newrelic.rb +1 -1
  282. data/newrelic_rpm.gemspec +8 -6
  283. data/recipes/newrelic.rb +1 -1
  284. data/test/agent_helper.rb +19 -11
  285. metadata +13 -10
data/README.md CHANGED
@@ -1,12 +1,15 @@
1
+ [![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)
2
+
1
3
  # New Relic Ruby Agent
2
4
 
3
- New Relic is a performance management system, developed by
4
- New Relic, Inc (http://www.newrelic.com). It provides you with deep
5
- information about the performance of your Rails or Ruby
6
- application as it runs in production and transmits them to
7
- newrelic.com where you can monitor them in real time. The New Relic
8
- Ruby Agent is dual-purposed as a either a Gem or a Rails plugin,
9
- hosted on [github](https://github.com/newrelic/rpm/tree/master).
5
+ The New Relic Ruby agent monitors your applications to help you
6
+ [identify and solve performance issues](https://docs.newrelic.com/docs/agents/ruby-agent/getting-started/introduction-new-relic-ruby#monitor-performance).
7
+ You can also extend the agent's performance monitoring to
8
+ [collect and analyze business data](https://docs.newrelic.com/docs/agents/ruby-agent/getting-started/introduction-new-relic-ruby#business-data)
9
+ to help you improve the customer experience and make data-driven business decisions.
10
+
11
+ The New Relic Ruby Agent is dual-purposed as a either a Gem or a Rails plugin,
12
+ hosted on [github](https://github.com/newrelic/newrelic-ruby-agent).
10
13
 
11
14
  ## Supported Environments
12
15
 
@@ -14,124 +17,93 @@ An up-to-date list of Ruby versions and frameworks for the latest agent
14
17
  can be found on [our docs site](http://docs.newrelic.com/docs/ruby/supported-frameworks).
15
18
 
16
19
  You can also monitor non-web applications. Refer to the "Other
17
- Environments" section under "Getting Started".
18
-
19
- ## Contributing Code
20
-
21
- We welcome code contributions (in the form of pull requests) from our user
22
- community. Before submitting a pull request please review
23
- [these guidelines](https://github.com/newrelic/rpm/blob/master/CONTRIBUTING.md).
24
-
25
- Following these helps us efficiently review and incorporate your contribution
26
- and avoid breaking your code with future changes to the agent.
27
-
28
-
29
- ## Getting Started
30
-
31
- Add the Ruby Agent to your project's Gemfile.
32
-
33
- gem 'newrelic_rpm'
20
+ Environments" section below.
34
21
 
35
- To monitor your applications in production, create an account at
36
- http://newrelic.com/ . There you can
37
- sign up for a free Lite account or one of our paid subscriptions.
22
+ ## Installing and Using
38
23
 
39
- Once you receive the welcome email with a license key and
40
- `newrelic.yml` file, you can copy the `newrelic.yml` file into your app config
41
- directory OR can generate the file manually with command:
24
+ ### Quick Start
42
25
 
43
- newrelic install --license_key="YOUR_KEY" "My application"
26
+ #### With Bundler
44
27
 
45
- The initial configuration is done in the `newrelic.yml` file. This file
46
- is by default read from the `config` directory of the application root
47
- and is subsequently searched for in the application root directory,
48
- and then in a `~/.newrelic` directory. Once you're up and running you can
49
- enable Server Side Config and manage your newrelic configuration from the web
50
- UI.
28
+ For using with Bundler, add the Ruby Agent to your project's Gemfile.
51
29
 
52
- #### Rails Installation
53
-
54
- You can install the agent as a Gem:
30
+ ```ruby
31
+ gem 'newrelic_rpm'
32
+ ```
55
33
 
56
- For Bundler:
34
+ and run `bundle install` to activate the new gem.
57
35
 
58
- Add the following line to your Gemfile:
36
+ #### Without Bundler
59
37
 
60
- gem 'newrelic_rpm'
38
+ If you are not using Bundler, install the gem with:
61
39
 
62
- For Rails 2.x without Bundler:
40
+ ```bash
41
+ gem install newrelic_rpm
42
+ ```
63
43
 
64
- edit `environment.rb` and add to the initalizer block:
44
+ and then require the New Relic Ruby agent in your Ruby start-up sequence:
65
45
 
66
- config.gem "newrelic_rpm"
46
+ ```ruby
47
+ require 'newrelic_rpm'
48
+ ```
67
49
 
68
- #### Sinatra Installation
50
+ #### Oher Environments
69
51
 
70
- To use the Ruby Agent with a Sinatra app, add:
52
+ Assuming you have installed the agent per above, you may also need to tell the Ruby agent to start for some frameworks and non-framework environments. To do so, add the following to your Ruby start-up sequence start the agent:
71
53
 
72
54
  ```ruby
73
- require 'newrelic_rpm'
55
+ NewRelic::Agent.manual_start
74
56
  ```
75
57
 
76
- in your Sinatra app, below the Sinatra require directive.
58
+ ### Complete Install Instructions
77
59
 
78
- Then make sure you set `RACK_ENV` to the environment corresponding to the
79
- configuration definitions in the newrelic.yml file; e.g., development,
80
- staging, production, etc.
60
+ For complete documentation on installing the New Relic Ruby agent, see the following links:
81
61
 
82
- #### Other Environments
62
+ * [Introduction](https://docs.newrelic.com/docs/agents/ruby-agent/getting-started/introduction-new-relic-ruby)
63
+ * [Install the New Relic Ruby agent](https://docs.newrelic.com/docs/agents/ruby-agent/installation/install-new-relic-ruby-agent)
64
+ * [Configure the agent](https://docs.newrelic.com/docs/agents/ruby-agent/configuration/ruby-agent-configuration)
65
+ * [Update the agent](https://docs.newrelic.com/docs/agents/ruby-agent/installation/update-ruby-agent)
66
+ * [Rails plugin installation](https://docs.newrelic.com/docs/agents/ruby-agent/installation/ruby-agent-installation-rails-plugin)
67
+ * [GAE Flexible Environment](https://docs.newrelic.com/docs/agents/ruby-agent/installation/install-new-relic-ruby-agent-gae-flexible-environment)
68
+ * [Pure Rack Apps](http://docs.newrelic.com/docs/ruby/rack-middlewares)
69
+ * [Ruby agent and Heroku](https://docs.newrelic.com/docs/agents/ruby-agent/installation/ruby-agent-heroku)
70
+ * [Background Jobs](https://docs.newrelic.com/docs/agents/ruby-agent/background-jobs)
71
+ * [Uninstall the Ruby agent](https://docs.newrelic.com/docs/agents/ruby-agent/installation/uninstall-ruby-agent)
83
72
 
84
- You can use the Ruby Agent to monitor any Ruby application. Add:
73
+ ### Recording Deploys
85
74
 
86
- ```ruby
87
- require 'newrelic_rpm'
88
- ```
89
-
90
- to your startup sequence and then manually start the agent using:
75
+ The Ruby Agent supports recording deployments in New Relic via a command line
76
+ tool or Capistrano recipes. For more information on these features see
77
+ [our deployment documentation](http://docs.newrelic.com/docs/ruby/recording-deployments-with-the-ruby-agent)
78
+ for more information.
91
79
 
92
- ```ruby
93
- NewRelic::Agent.manual_start
94
- ```
80
+ ## Support
95
81
 
96
- For information about instrumenting pure Rack applications, see our
97
- [Rack middlewares documentation](http://docs.newrelic.com/docs/ruby/rack-middlewares).
82
+ New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub. You can find this project's topic/threads here:
98
83
 
99
- Refer to the [New Relic's Docs](http://newrelic.com/docs) for details on how to
100
- monitor other web frameworks, background jobs, and daemons.
84
+ https://discuss.newrelic.com/c/support-products-agents/ruby-agent
101
85
 
102
- The Ruby Agent provides an API that allows custom instrumentation of additional
103
- frameworks. You can find a list of community created intrumentation plugins
104
- (e.g. [newrelic-redis](https://github.com/evanphx/newrelic-redis)) in the
105
- [extends_newrelic_rpm project](https://github.com/newrelic/extends_newrelic_rpm).
86
+ ## Contributing
106
87
 
107
- ## Production Mode
88
+ We encourage contributions to improve the New Relic Ruby agent! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.
89
+ If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.
108
90
 
109
- When your application runs in the production environment, the New
110
- Relic agent runs in production mode. It connects to the New Relic
111
- service and sends deep performance data to the UI for your
112
- analysis. To view this data, log in to http://rpm.newrelic.com.
91
+ If you would like to contribute to this project, please review [these guidelines](./CONTRIBUTING.md).
113
92
 
114
- NOTE: You must have a valid account and license key to view this data
115
- online. Refer to instructions in *Getting Started*.
93
+ To [all contributors](https://github.com/newrelic/newrelic-ruby-agent/graphs/contributors), we thank you! Without your contribution, this project would not be what it is today. We also host a community project page dedicated to
94
+ the [New Relic Ruby agent](https://opensource.newrelic.com/projects/newrelic/newrelic-ruby-agent).
116
95
 
117
- ## Recording Deploys
96
+ ## License
118
97
 
119
- The Ruby Agent supports recording deployments in New Relic via a command line
120
- tool or Capistrano recipes. For more information on these features see
121
- [our deployment documentation](http://docs.newrelic.com/docs/ruby/recording-deployments-with-the-ruby-agent)
122
- for more information.
98
+ The New Relic Ruby agent is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.
99
+ The New Relic Ruby agent also uses source code from third-party libraries. Full details on which libraries are used and the terms under which they are licensed can be found in the [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md).
123
100
 
124
101
  ## Support
125
102
 
126
103
  You can find more detailed documentation [on our website](http://newrelic.com/docs),
127
104
  and specifically in the [Ruby category](http://newrelic.com/docs/ruby).
128
105
 
129
- If you can't find what you're looking for there, reach out to us on our [support
130
- site](http://support.newrelic.com/) or our [community forum](https://discuss.newrelic.com/)
131
- and we'll be happy to help you.
132
-
133
- Find a bug? Contact us via [support.newrelic.com](http://support.newrelic.com/),
134
- or email support@newrelic.com.
106
+ ## Thank You
135
107
 
136
108
  Thank you, and may your application scale to infinity plus one.
137
109
 
@@ -0,0 +1,213 @@
1
+ # Third Party Notices
2
+
3
+ The New Relic Ruby Agent uses source code from third party libraries which carry
4
+ their own copyright notices and license terms. These notices are provided
5
+ below.
6
+
7
+ In the event that a required notice is missing or incorrect, please notify us
8
+ by e-mailing [open-source@newrelic.com](mailto:open-source@newrelic.com).
9
+
10
+ For any licenses that require the disclosure of source
11
+ code, the source code can be found at:
12
+ [https://github.com/newrelic/newrelic-ruby-agent](https://github.com/newrelic/newrelic-ruby-agent).
13
+
14
+ ## Content
15
+
16
+ * [symantec](#symantec)
17
+
18
+ ### symantec
19
+
20
+ This product includes certificates from Symantec which are used under the
21
+ following license (https://docs.broadcom.com/doc/root-certificate-license-agreement-en):
22
+
23
+ ```
24
+ ROOT CERTIFICATE LICENSE AGREEMENT
25
+ SYMANTEC CORPORATION AND/OR ITS AFFILIATES (“SYMANTEC”) IS WILLING TO PROVIDE THE
26
+ ROOT CERTIFICATES TO YOU AS THE INDIVIDUAL, THE COMPANY, OR THE LEGAL ENTITY THAT
27
+ WILL BE UTILIZING THE ROOT CERTIFICATES (REFERENCED BELOW AS “YOU” OR “YOUR”)
28
+ ONLY ON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS OF THIS AGREEMENT
29
+ (“AGREEMENT”). READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY
30
+ BEFORE USING THE ROOT CERTIFICATES. THIS IS A LEGAL AND ENFORCEABLE CONTRACT
31
+ BETWEEN YOU AND SYMANTEC. BY USING THE ROOT CERTIFICATES, YOU AGREE TO THE
32
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO THESE TERMS AND
33
+ CONDITIONS, MAKE NO FURTHER USE OF THE ROOT CERTIFICATES. UNLESS OTHERWISE
34
+ DEFINED HEREIN, CAPITALIZED TERMS WILL HAVE THE MEANING GIVEN IN THE “DEFINITIONS”
35
+ SECTION OF THIS AGREEMENT AND SUCH CAPITALIZED TERMS MAY BE USED IN THE
36
+ SINGULAR OR IN THE PLURAL, AS THE CONTEXT REQUIRES.
37
+
38
+ ROOT CERTIFICATE TERMS AND CONDITIONS
39
+ 1. DEFINITIONS.
40
+ "Certificate" means an electronic file that, at least, states a name or identifies the issuing Certificate
41
+ Authority, identifies the subscriber, contains the subscriber's public key, identifies the Certificate's
42
+ operational period, contains a Certificate serial number, and contains a digital signature of the issuing
43
+ Certificate Authority.
44
+ “Certificate Authority” or “CA” means a person or entity authorized to issue, suspend, or revoke
45
+ Certificates.
46
+ “Intermediate CA” means a CA Certificate signed by a Root Certificate Intermediate that issues
47
+ Certificates either to end-entities or other Certificate Authorities, but not to both.
48
+ "Products" means all versions of Your product or service with which the Root Certificates are incorporated
49
+ (including successor products and services or any major or minor upgrades thereto).
50
+ "Root Certificate" means a self-signed Certificate issued by a top-level Certificate Authority to itself, which
51
+ includes such Certificate Authority's public key. The Root Certificates and Root Certificate files to be
52
+ provided by Company to Customer pursuant to this Agreement are available for download at
53
+ https://www.verisign.com/support/roots.html, https://www.thawte.com/roots/index.html or
54
+ https://www.geotrust.com/resources/rootcertificates/index.html.
55
+ 2. LICENSE. During the term of this Agreement, Symantec grants You a royalty-free, non-exclusive, nontransferable license to (a) use the Root Certificate for the purposes of testing (without the right to modify);
56
+ (b) make copies of Root Certificates only in order to embed and incorporate them, unmodified and in full,
57
+ as roots in Your Products; (c) distribute the Root Certificates as embedded and incorporated in such
58
+ Products; and (d) use the relevant logos and trademarks of Symantec in Your marketing materials,
59
+ advertisements, product data sheets, product packaging and websites solely conjunction with the
60
+ distribution of the Root Certificates in accordance with Symantec’s published guidelines for such usage.
61
+ You shall not have the right to further distribute the Root Certificates other than as described herein
62
+ without an additional license grant, in a separate writing, from Symantec.
63
+ 3. RESTRICTIONS. You may not: (a) modify or create any derivative works of Root Certificates; (b)
64
+ assign, sublicense, sell, rent, or lease Symantec's root keys or Root Certificates; (c) use such Root
65
+ Certificates except as expressly permitted under this Agreement; (d) remove or alter any trademark, logo,
66
+ copyright, or other proprietary notices, legends, symbols, or labels provided in the Root Certificates; or (e)
67
+ certify, or cause a third party to certify, the public key contained in the Root Certificates by issuing or
68
+ creating a Certificate containing such public key.
69
+ 4. CUSTOMER’S OBLIGATIONS.
70
+ 4.1. During the term of this Agreement, You shall use commercially reasonable efforts regularly check the
71
+ applicable Symantec URL for updates to the Root Certificates and update Root Certificates embedded
72
+ into Your Products with the most currently available Root Certificates, unmodified and in full, or as a patch
73
+ or update. If Symantec updates its Root Certificates,, You shall use commercially reasonable efforts to (i)
74
+ discontinue all copying and use of the Root Certificates which have been replaced, and (ii) to use
75
+ Symantec’s then-current Root Certificates. Any updates to the Root Certificates are incorporated into and
76
+ subject to the terms of this Agreement.
77
+ 4.2. You shall appoint at least one (1) individual as the administrative contact designated to address any
78
+ Root Certificate issues and shall provide the contact information for such individual to dl-tssroot@symantec.com.
79
+ 4.3 In the event You become aware of or suspect any event that diminishes the integrity of Symantec's
80
+ data or public key system ("Compromise"), You shall immediately notify Symantec at dl-tss-
81
+ root@symantec.com of such Compromise, and take reasonable steps to assist and cooperate with
82
+ Symantec to remedy the Compromise.
83
+ 4.4 In the event that Symantec modifies these terms of use for the Root certificates for all end users,
84
+ Symantec shall post the modified terms for the Agreement on the applicable URL and may post the
85
+ modified terms on the Symantec corporate website. You shall be responsible for regularly checking the
86
+ applicable URL for modifications to this Agreement. Such modifications shall be effective and binding on
87
+ Customer within thirty (30) days of Symantec’s posting such modifications to its website. If you do not
88
+ accept the modified Agreement, discontinue use of the Root Certificates and this Agreement will be
89
+ deemed as terminated.
90
+ 5. CONFIDENTIALITY.
91
+ 5.1. Confidential Information. "Confidential Information" means the root private keys corresponding to the
92
+ public key in a Root Certificate, and any confidential, trade secret, or other proprietary information
93
+ disclosed by a party to the other party under this Agreement, except for Information that: (i) is public
94
+ knowledge at the time of disclosure, (ii) was known by the receiving party before disclosure by the
95
+ disclosing party, or becomes public knowledge or otherwise known to the receiving party after such
96
+ disclosure, other than by breach of a confidentiality obligation, or (iii) is independently developed by the
97
+ receiving party by persons without access to Confidential Information of the disclosing party.
98
+ 5.2. Protection of Confidential Information. The receiving party shall: (i) not disclose the Confidential
99
+ information to any third party, (ii) not use the Confidential Information except for purposes of performing
100
+ this Agreement, and (iii) take steps consistent with its protection of its own confidential and proprietary
101
+ information (but in no event exercise less than reasonable care) to prevent unauthorized disclosure of the
102
+ Confidential Information. Each party acknowledges that breach of this Section 5 may cause irreparable
103
+ harm to the disclosing party entitling the disclosing party to injunctive relief, among other remedies.
104
+ 5.3. Mutual Cooperation. Each party will notify and cooperate with the other party in enforcing the
105
+ disclosing party's rights if such party becomes aware of a threatened or actual violation of the
106
+ confidentiality requirements of this Section 5. Each party shall have confidentiality agreements with its
107
+ employees, agents or independent contractors sufficient in scope to fulfill its confidentiality obligations
108
+ under this Agreement.
109
+ 6. INTELLECTUAL PROPERTY. You acknowledge that Symantec, including its wholly owned
110
+ subsidiaries, retains all intellectual property rights and title (including any patent, copyright, trademark,
111
+ trade secret, and other rights) in and to the Root Certificates, the public and private keys corresponding to
112
+ such Root Certificates ("Symantec Intellectual Property"). This Agreement does not give You any
113
+ intellectual property rights in the Symantec intellectual property except for the license granted in Section
114
+ 2. To the extent You use Symantec's trademarks or logos as permitted herein, You agree to comply with
115
+ all usage requirements set forth in the then current version of Symantec's Logo and Trademark Usage
116
+ Guide (http://www.symantec.com/about/profile/policies/trademarks.jsp) and any other guides and
117
+ procedures of Symantec.
118
+ 7. NO WARRANTIES. THE ROOT CERTIFICATES, INCLUDING UPDATES, ARE PROVIDED "AS IS"
119
+ WITHOUT ANY WARRANTY WHATSOEVER. SYMANTEC HEREBY DISCLAIMS ALL WARRANTIES,
120
+ WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING WITHOUT LIMITATION, ANY
121
+ IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
122
+ NONINFRINGEMENT OF THIRD PARTY RIGHTS.
123
+ 8. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY WILL
124
+ SYMANTEC OR ITS LICENSORS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY
125
+ CONSEQUENTIAL, INDIRECT, SPECIAL, INCIDENTAL, OR EXEMPLARY DAMAGES, WHETHER
126
+ FORESEEABLE OR UNFORESEEABLE, EVEN IF SUCH PARTY HAS BEEN ADVISED OF THE
127
+ POSSIBILITY OF SUCH DAMAGES. YOU WILL TAKE REASONABLE MEASURES TO INSURE THAT
128
+ THE TERMS AND CONDITIONS SET FORTH IN THE PRECEDING SENTENCE OF THIS SECTION 8
129
+ ARE INCORPORATED INTO ANY AGREEMENT BETWEEN YOU AND YOUR CUSTOMERS OR
130
+ LICENSEES. SYMANTEC SHALL NOT BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY
131
+ DAMAGES CAUSED BY YOUR OR A THIRD PARTY’S CONTINUED USE OF ANY OUTDATED
132
+ ROOTS FOR WHICH AN UPDATED VERSION IS MADE AVAILABLE BY SYMANTEC. FURTHER,
133
+ UNDER NO CIRCUMSTANCES WILL SYMANTEC'S LIABILITY FOR ANY ACTION OR CLAIM EXCEED
134
+ USD$1,000, REGARDLESS OF WHETHER SUCH ACTION OR CLAIM IS BASED IN CONTRACT,
135
+ TORT, STRICT LIABILITY, OR OTHERWISE.
136
+ 9. TERM AND TERMINATION.
137
+ 9.1. Term. This Agreement shall become effective as of the earlier of, Your first use of the Root
138
+ Certificates, and shall remain in effect until the earlier of (i) Your discontinued use of the Root Certificates;
139
+ (ii) termination by either party under the terms of Section 9.2, below; or (iii) Symantec’s notice to You that
140
+ Symantec is no longer providing Root Certificates for use.
141
+ 9.2. Termination for Default/Insolvency. Either party shall be entitled to terminate this Agreement in the
142
+ event of a failure by the other party to perform any of its material obligations under this Agreement if such
143
+ breach is not cured within thirty (30) days after receipt of written notice thereof from the non-defaulting
144
+ party or within forty-eight (48) hours after receipt of such written notice if a breach by You may
145
+ compromise the security of the Symantec Trust Network or other system. This Agreement shall terminate
146
+ upon the election of and notice from a party to the other if the other party is adjudged insolvent or
147
+ bankrupt, or the institution of any proceedings by or against the other party seeking relief, reorganization,
148
+ or arrangement under any laws relating to insolvency, or any assignment for the benefit of creditors, or
149
+ the appointment of a receiver, liquidator, or trustee of any of the other party's property or assets, or the
150
+ liquidation, dissolution, or winding up of the other party's business.
151
+ 9.3. Effect of Expiration or Termination. Upon expiration or termination of this Agreement, except for a
152
+ breach by You, You may continue to distribute the current version of Your Products which incorporate the
153
+ Root Certificates. Any updates or upgrades thereto may not include the Root Certificates and You shall
154
+ stop making copies of Root Certificates, shall stop including Root Certificates in Your Products, and shall
155
+ stop using Symantec’s logos and trademarks. The provisions of Sections 3, 4.3, 5, 6, 7, 8, 9.3, and 10
156
+ shall survive termination of this Agreement.
157
+ 10. GENERAL.
158
+ 10.1. Governing Laws. This Agreement and any disputes relating to the services provided hereunder shall
159
+ be governed and interpreted according to each of the following laws, respectively, without regard to its
160
+ conflicts of law provisions: (a) the laws of the State of California, if You are located in North America or
161
+ Latin America; or (b) the law of England, if You are located in Europe, Middle East or Africa; or (c) the
162
+ laws of Singapore, if You are located in Asia Pacific including Japan. The United Nations Convention on
163
+ Contracts for the International Sale of Goods shall not apply to this Agreement.
164
+ 10.2. Binding Upon Successors; Assignment. This Agreement shall be binding upon, and inure to the
165
+ benefit of, the successors, executors, heirs, representatives, administrators, and assigns of the parties
166
+ hereto. Notwithstanding the foregoing, You may not assign Your rights or obligations under this
167
+ Agreement without the prior written consent of Symantec. Any such purported assignment of this
168
+ Agreement without obtaining written consent shall be void and of no effect.
169
+ 10.3. Severability; Enforcement; No Waiver. The unenforceability of any provision or provisions of this
170
+ Agreement shall not impair the enforceability of any other part of this Agreement. If any provision of this
171
+ Agreement shall be deemed invalid or unenforceable, in whole or in part, this Agreement shall be deemed
172
+ amended to delete or modify, as necessary, the invalid or unenforceable provision to render it valid,
173
+ enforceable, and, insofar as possible, consistent with the original intent of the parties. The failure of a
174
+ party, at any time or from time to time, to require performance of any obligations of the other party
175
+ hereunder shall not be deemed a waiver and shall not affect its right to enforce any provision of this
176
+ Agreement at a subsequent time.
177
+ 10.4. Entire Agreement; Amendments; Waivers. This Agreement constitutes the entire understanding and
178
+ agreement of the parties, whether written or oral, with respect to the subject matter hereof and supersede
179
+ all prior and contemporaneous agreements or understandings between the parties. Any term or provision
180
+ of this Agreement may be amended, and the observance of any term of this Agreement may be waived,
181
+ only by writing signed by the parties to be bound thereby.
182
+ 10.5. Compliance with Law, Export Requirements and Foreign Reshipment Liability. Each party shall
183
+ comply with all applicable federal, state and local laws and regulations in connection with its performance
184
+ under this Agreement. Services, including documentation, may include controlled technology or technical
185
+ data (collectively “Controlled Technology”) that is subject to the U.S. Export Administration Regulations
186
+ (EAR), and diversion contrary to U.S. law is prohibited. You agree to comply with all relevant laws
187
+ including the U.S. EAR and the laws of any country from which Controlled Technology is exported. All
188
+ Controlled Technology is prohibited for export or re-export to Cuba, North Korea, Iran, Sudan and Syria
189
+ and to any country or its nationals subject to relevant embargo or sanction or to any entity or person for
190
+ which an export license is required per any relevant restricted party list, without first obtaining a license.
191
+ Furthermore, You hereby agree that You will not use or allow use of Controlled Technology in connection
192
+ with chemical, biological, or nuclear weapons, or missiles, drones or space launch vehicles capable of
193
+ delivering such weapons. Symantec shall have the right to suspend performance of any of its obligations
194
+ under this Agreement, without any prior notice being required and without any liability to Customer, if You
195
+ fail to comply with this provision.
196
+ 10.6. Notices. You will make all notices, demands or requests to Symantec with respect to this Agreement
197
+ in writing to the "Contact" address listed on the website from where you downloaded the Root Certificates,
198
+ with a copy to: General Counsel – Legal Department, Symantec Corporation, 350 Ellis Street, Mountain
199
+ View, California 94043, USA. Notices shall be effective on the date received (unless the notice specifies a
200
+ later date) only if it is sent by a courier service that confirms delivery in writing or if sent by certified or
201
+ registered mail, postage prepaid, return receipt requested. Symantec may post notices and updates
202
+ regarding the Agreement or the Root Certificates at the URL provided to You for the Root Certificates.
203
+ You shall be responsible for regularly checking the applicable URL for notices from Symantec regarding
204
+ the Agreement or the Root Certificates. No notices, demands, or requests to Symantec with respect to
205
+ this Agreement may be delivered by electronic mail. You shall immediately notify Symantec of any legal
206
+ notices served on You that might affect Symantec, and shall promptly forward the original or a copy of
207
+ such notice to Symantec.
208
+ 10.7. Independent Parties. The relationship between You and Symantec is that of independent
209
+ contractors. Neither party nor its employees, consultants, contractors, or agents are agents, employees,
210
+ or joint venturers of the other party, nor do they have any authority to bind the other party by contract or
211
+ otherwise to any obligation.
212
+ Root Certificate License Agreement v3.0 (January 2014)
213
+ ```
@@ -2,7 +2,7 @@
2
2
 
3
3
  # encoding: utf-8
4
4
  # This file is distributed under New Relic's license terms.
5
- # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
5
+ # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
6
6
 
7
7
  require 'tempfile'
8
8
  require 'rbconfig'
data/init.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # This file is distributed under New Relic's license terms.
3
- # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
3
+ # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
4
4
 
5
5
  # This is the initialization for the New Relic Ruby Agent when used as
6
6
  # a plugin
data/install.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # This file is distributed under New Relic's license terms.
3
- # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
3
+ # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
4
4
 
5
5
  if __FILE__ == $0 || $0 =~ /script\/plugin/ || File.basename($0) == 'rake'
6
6
  $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # This file is distributed under New Relic's license terms.
3
- # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
3
+ # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
4
4
 
5
5
  require 'forwardable'
6
6
 
@@ -57,7 +57,8 @@ module NewRelic
57
57
  require 'new_relic/agent/deprecator'
58
58
  require 'new_relic/agent/logging'
59
59
  require 'new_relic/agent/distributed_tracing'
60
-
60
+ require 'new_relic/agent/attribute_processing'
61
+
61
62
  require 'new_relic/agent/instrumentation/controller_instrumentation'
62
63
 
63
64
  require 'new_relic/agent/samplers/cpu_sampler'
@@ -582,6 +583,14 @@ module NewRelic
582
583
  if params.is_a? Hash
583
584
  txn = Transaction.tl_current
584
585
  txn.add_custom_attributes(params) if txn
586
+
587
+ segment = ::NewRelic::Agent::Tracer.current_segment
588
+ if segment
589
+ # Make sure not to override existing segment-level custom attributes
590
+ segment_custom_keys = segment.attributes.custom_attributes.keys
591
+ segment_custom_keys.each { |k| params.delete k.to_sym }
592
+ segment.add_custom_attributes(params)
593
+ end
585
594
  else
586
595
  ::NewRelic::Agent.logger.warn("Bad argument passed to #add_custom_attributes. Expected Hash but got #{params.class}")
587
596
  end
@@ -621,7 +630,7 @@ module NewRelic
621
630
  # cases where this is insufficient, this can be used to manually
622
631
  # control the name of the transaction.
623
632
  #
624
- # The category of transaction can be specified via the +:category+ option.
633
+ # The category of transaction can be specified via the +:category+ option.
625
634
  # The following are the only valid categories:
626
635
  #
627
636
  # * <tt>:category => :controller</tt> indicates that this is a