newrelic_rpm 9.11.0 → 9.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +112 -0
- data/README.md +16 -20
- data/lib/new_relic/agent/agent_logger.rb +1 -0
- data/lib/new_relic/agent/configuration/default_source.rb +136 -5
- data/lib/new_relic/agent/configuration/manager.rb +8 -0
- data/lib/new_relic/agent/database/obfuscator.rb +1 -0
- data/lib/new_relic/agent/instrumentation/active_merchant.rb +0 -13
- data/lib/new_relic/agent/instrumentation/bunny/instrumentation.rb +14 -0
- data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +0 -19
- data/lib/new_relic/agent/instrumentation/elasticsearch/instrumentation.rb +1 -1
- data/lib/new_relic/agent/instrumentation/excon.rb +0 -16
- data/lib/new_relic/agent/instrumentation/grape.rb +3 -1
- data/lib/new_relic/agent/instrumentation/logstasher/chain.rb +21 -0
- data/lib/new_relic/agent/instrumentation/logstasher/instrumentation.rb +24 -0
- data/lib/new_relic/agent/instrumentation/logstasher/prepend.rb +13 -0
- data/lib/new_relic/agent/instrumentation/logstasher.rb +27 -0
- data/lib/new_relic/agent/instrumentation/opensearch/chain.rb +21 -0
- data/lib/new_relic/agent/instrumentation/opensearch/instrumentation.rb +66 -0
- data/lib/new_relic/agent/instrumentation/opensearch/prepend.rb +13 -0
- data/lib/new_relic/agent/instrumentation/opensearch.rb +25 -0
- data/lib/new_relic/agent/instrumentation/rack/instrumentation.rb +3 -0
- data/lib/new_relic/agent/instrumentation/rails_notifications/action_controller.rb +9 -5
- data/lib/new_relic/agent/instrumentation/redis/cluster_middleware.rb +26 -0
- data/lib/new_relic/agent/instrumentation/redis/instrumentation.rb +14 -11
- data/lib/new_relic/agent/instrumentation/redis/middleware.rb +3 -0
- data/lib/new_relic/agent/instrumentation/redis.rb +11 -4
- data/lib/new_relic/agent/instrumentation/sidekiq.rb +0 -14
- data/lib/new_relic/agent/instrumentation/sinatra.rb +0 -13
- data/lib/new_relic/agent/local_log_decorator.rb +8 -1
- data/lib/new_relic/agent/log_event_aggregator.rb +91 -26
- data/lib/new_relic/agent/serverless_handler.rb +241 -12
- data/lib/new_relic/agent/serverless_handler_event_sources.json +155 -0
- data/lib/new_relic/agent/serverless_handler_event_sources.rb +49 -0
- data/lib/new_relic/agent/system_info.rb +14 -0
- data/lib/new_relic/agent/transaction/trace_context.rb +1 -1
- data/lib/new_relic/control/frameworks/grape.rb +14 -0
- data/lib/new_relic/control/frameworks/padrino.rb +14 -0
- data/lib/new_relic/control/frameworks/rails4.rb +4 -2
- data/lib/new_relic/control/instance_methods.rb +1 -0
- data/lib/new_relic/control/private_instance_methods.rb +4 -0
- data/lib/new_relic/control/security_interface.rb +57 -0
- data/lib/new_relic/control.rb +1 -1
- data/lib/new_relic/environment_report.rb +6 -2
- data/lib/new_relic/language_support.rb +7 -1
- data/lib/new_relic/local_environment.rb +1 -4
- data/lib/new_relic/rack/browser_monitoring.rb +11 -7
- data/lib/new_relic/version.rb +1 -1
- data/lib/tasks/config.rake +5 -2
- data/lib/tasks/helpers/config.html.erb +1 -1
- data/lib/tasks/helpers/format.rb +1 -1
- data/lib/tasks/helpers/newrelicyml.rb +76 -13
- data/lib/tasks/instrumentation_generator/instrumentation.thor +1 -0
- data/lib/tasks/instrumentation_generator/templates/dependency_detection.tt +3 -3
- data/newrelic.yml +209 -137
- data/test/agent_helper.rb +9 -0
- metadata +16 -2
data/test/agent_helper.rb
CHANGED
@@ -1043,3 +1043,12 @@ end
|
|
1043
1043
|
def ruby_version_float
|
1044
1044
|
RUBY_VERSION.split('.')[0..1].join('.').to_f
|
1045
1045
|
end
|
1046
|
+
|
1047
|
+
def rails_version
|
1048
|
+
@rails_version ||= Gem::Version.new(Rails::VERSION::STRING)
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
def rails_version_at_least?(version_string)
|
1052
|
+
version_string += '.0' until version_string.count('.') >= 2 # '7' => '7.0.0'
|
1053
|
+
rails_version >= Gem::Version.new(version_string)
|
1054
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanna McClure
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2024-
|
14
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -465,6 +465,10 @@ files:
|
|
465
465
|
- lib/new_relic/agent/instrumentation/logger/chain.rb
|
466
466
|
- lib/new_relic/agent/instrumentation/logger/instrumentation.rb
|
467
467
|
- lib/new_relic/agent/instrumentation/logger/prepend.rb
|
468
|
+
- lib/new_relic/agent/instrumentation/logstasher.rb
|
469
|
+
- lib/new_relic/agent/instrumentation/logstasher/chain.rb
|
470
|
+
- lib/new_relic/agent/instrumentation/logstasher/instrumentation.rb
|
471
|
+
- lib/new_relic/agent/instrumentation/logstasher/prepend.rb
|
468
472
|
- lib/new_relic/agent/instrumentation/memcache.rb
|
469
473
|
- lib/new_relic/agent/instrumentation/memcache/chain.rb
|
470
474
|
- lib/new_relic/agent/instrumentation/memcache/dalli.rb
|
@@ -480,6 +484,10 @@ files:
|
|
480
484
|
- lib/new_relic/agent/instrumentation/net_http/instrumentation.rb
|
481
485
|
- lib/new_relic/agent/instrumentation/net_http/prepend.rb
|
482
486
|
- lib/new_relic/agent/instrumentation/notifications_subscriber.rb
|
487
|
+
- lib/new_relic/agent/instrumentation/opensearch.rb
|
488
|
+
- lib/new_relic/agent/instrumentation/opensearch/chain.rb
|
489
|
+
- lib/new_relic/agent/instrumentation/opensearch/instrumentation.rb
|
490
|
+
- lib/new_relic/agent/instrumentation/opensearch/prepend.rb
|
483
491
|
- lib/new_relic/agent/instrumentation/padrino.rb
|
484
492
|
- lib/new_relic/agent/instrumentation/padrino/chain.rb
|
485
493
|
- lib/new_relic/agent/instrumentation/padrino/instrumentation.rb
|
@@ -503,6 +511,7 @@ files:
|
|
503
511
|
- lib/new_relic/agent/instrumentation/rake/prepend.rb
|
504
512
|
- lib/new_relic/agent/instrumentation/redis.rb
|
505
513
|
- lib/new_relic/agent/instrumentation/redis/chain.rb
|
514
|
+
- lib/new_relic/agent/instrumentation/redis/cluster_middleware.rb
|
506
515
|
- lib/new_relic/agent/instrumentation/redis/constants.rb
|
507
516
|
- lib/new_relic/agent/instrumentation/redis/instrumentation.rb
|
508
517
|
- lib/new_relic/agent/instrumentation/redis/middleware.rb
|
@@ -601,6 +610,8 @@ files:
|
|
601
610
|
- lib/new_relic/agent/samplers/object_sampler.rb
|
602
611
|
- lib/new_relic/agent/samplers/vm_sampler.rb
|
603
612
|
- lib/new_relic/agent/serverless_handler.rb
|
613
|
+
- lib/new_relic/agent/serverless_handler_event_sources.json
|
614
|
+
- lib/new_relic/agent/serverless_handler_event_sources.rb
|
604
615
|
- lib/new_relic/agent/span_event_aggregator.rb
|
605
616
|
- lib/new_relic/agent/span_event_primitive.rb
|
606
617
|
- lib/new_relic/agent/sql_sampler.rb
|
@@ -663,6 +674,8 @@ files:
|
|
663
674
|
- lib/new_relic/control/class_methods.rb
|
664
675
|
- lib/new_relic/control/frameworks.rb
|
665
676
|
- lib/new_relic/control/frameworks/external.rb
|
677
|
+
- lib/new_relic/control/frameworks/grape.rb
|
678
|
+
- lib/new_relic/control/frameworks/padrino.rb
|
666
679
|
- lib/new_relic/control/frameworks/rails.rb
|
667
680
|
- lib/new_relic/control/frameworks/rails3.rb
|
668
681
|
- lib/new_relic/control/frameworks/rails4.rb
|
@@ -673,6 +686,7 @@ files:
|
|
673
686
|
- lib/new_relic/control/instance_methods.rb
|
674
687
|
- lib/new_relic/control/instrumentation.rb
|
675
688
|
- lib/new_relic/control/private_instance_methods.rb
|
689
|
+
- lib/new_relic/control/security_interface.rb
|
676
690
|
- lib/new_relic/control/server_methods.rb
|
677
691
|
- lib/new_relic/delayed_job_injection.rb
|
678
692
|
- lib/new_relic/dependency_detection.rb
|