newrelic_rpm 6.2.0.354 → 6.7.0.359

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +27 -5
  3. data/CHANGELOG.md +157 -6
  4. data/lib/new_relic/agent.rb +49 -0
  5. data/lib/new_relic/agent/agent.rb +110 -146
  6. data/lib/new_relic/agent/commands/agent_command_router.rb +2 -21
  7. data/lib/new_relic/agent/configuration/default_source.rb +103 -41
  8. data/lib/new_relic/agent/configuration/environment_source.rb +4 -2
  9. data/lib/new_relic/agent/configuration/event_harvest_config.rb +45 -0
  10. data/lib/new_relic/agent/configuration/high_security_source.rb +1 -0
  11. data/lib/new_relic/agent/configuration/manager.rb +13 -9
  12. data/lib/new_relic/agent/configuration/server_source.rb +35 -1
  13. data/lib/new_relic/agent/connect/request_builder.rb +69 -0
  14. data/lib/new_relic/agent/connect/response_handler.rb +61 -0
  15. data/lib/new_relic/agent/cross_app_monitor.rb +1 -1
  16. data/lib/new_relic/agent/error_collector.rb +2 -2
  17. data/lib/new_relic/agent/error_event_aggregator.rb +2 -1
  18. data/lib/new_relic/agent/error_trace_aggregator.rb +1 -0
  19. data/lib/new_relic/agent/event_aggregator.rb +26 -32
  20. data/lib/new_relic/agent/hostname.rb +1 -1
  21. data/lib/new_relic/agent/inbound_request_monitor.rb +2 -2
  22. data/lib/new_relic/agent/instrumentation/action_cable_subscriber.rb +24 -42
  23. data/lib/new_relic/agent/instrumentation/action_controller_subscriber.rb +46 -74
  24. data/lib/new_relic/agent/instrumentation/action_view_subscriber.rb +70 -53
  25. data/lib/new_relic/agent/instrumentation/active_record_notifications.rb +168 -0
  26. data/lib/new_relic/agent/instrumentation/active_record_subscriber.rb +40 -47
  27. data/lib/new_relic/agent/instrumentation/active_storage_subscriber.rb +4 -4
  28. data/lib/new_relic/agent/instrumentation/grape.rb +2 -3
  29. data/lib/new_relic/agent/instrumentation/notifications_subscriber.rb +76 -0
  30. data/lib/new_relic/agent/instrumentation/{rails5 → rails_notifications}/action_cable.rb +5 -6
  31. data/lib/new_relic/agent/instrumentation/{rails5 → rails_notifications}/action_controller.rb +3 -3
  32. data/lib/new_relic/agent/instrumentation/{rails4 → rails_notifications}/action_view.rb +3 -3
  33. data/lib/new_relic/agent/javascript_instrumentor.rb +1 -1
  34. data/lib/new_relic/agent/logging.rb +125 -0
  35. data/lib/new_relic/agent/new_relic_service.rb +0 -4
  36. data/lib/new_relic/agent/parameter_filtering.rb +18 -5
  37. data/lib/new_relic/agent/priority_sampled_buffer.rb +2 -0
  38. data/lib/new_relic/agent/span_event_aggregator.rb +2 -5
  39. data/lib/new_relic/agent/threading/backtrace_service.rb +3 -3
  40. data/lib/new_relic/agent/threading/thread_profile.rb +9 -23
  41. data/lib/new_relic/agent/tracer.rb +32 -0
  42. data/lib/new_relic/agent/transaction.rb +0 -2
  43. data/lib/new_relic/agent/transaction/trace.rb +3 -8
  44. data/lib/new_relic/agent/transaction/trace_builder.rb +0 -1
  45. data/lib/new_relic/agent/transaction_event_recorder.rb +3 -3
  46. data/lib/new_relic/agent/transaction_sampler.rb +1 -5
  47. data/lib/new_relic/cli/commands/deployments.rb +1 -1
  48. data/lib/new_relic/control/class_methods.rb +7 -1
  49. data/lib/new_relic/control/frameworks/{rails5.rb → rails_notifications.rb} +1 -1
  50. data/lib/new_relic/rack/browser_monitoring.rb +10 -8
  51. data/lib/new_relic/version.rb +1 -1
  52. data/lib/tasks/config.rake +1 -2
  53. data/newrelic_rpm.gemspec +7 -0
  54. data/test/agent_helper.rb +18 -5
  55. metadata +17 -16
  56. data/lib/new_relic/agent/commands/xray_session.rb +0 -55
  57. data/lib/new_relic/agent/commands/xray_session_collection.rb +0 -161
  58. data/lib/new_relic/agent/instrumentation/active_record_4.rb +0 -42
  59. data/lib/new_relic/agent/instrumentation/active_record_5.rb +0 -41
  60. data/lib/new_relic/agent/instrumentation/evented_subscriber.rb +0 -104
  61. data/lib/new_relic/agent/instrumentation/rails4/action_controller.rb +0 -32
  62. data/lib/new_relic/agent/instrumentation/rails5/action_view.rb +0 -27
  63. data/lib/new_relic/agent/transaction/xray_sample_buffer.rb +0 -64
  64. data/lib/new_relic/control/frameworks/rails6.rb +0 -14
@@ -1,14 +0,0 @@
1
- # encoding: utf-8
2
- # This file is distributed under New Relic's license terms.
3
- # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
4
-
5
- require 'new_relic/control/frameworks/rails4'
6
-
7
- module NewRelic
8
- class Control
9
- module Frameworks
10
- class Rails6 < NewRelic::Control::Frameworks::Rails4
11
- end
12
- end
13
- end
14
- end