newrelic_rpm 8.16.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -28
- data/.rubocop_todo.yml +41 -3
- data/CHANGELOG.md +126 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +3 -1
- data/bin/nrdebug +16 -16
- data/lib/new_relic/agent/agent_helpers/connect.rb +1 -1
- data/lib/new_relic/agent/agent_helpers/special_startup.rb +1 -2
- data/lib/new_relic/agent/attribute_filter.rb +0 -2
- data/lib/new_relic/agent/commands/thread_profiler_session.rb +3 -3
- data/lib/new_relic/agent/configuration/default_source.rb +98 -474
- data/lib/new_relic/agent/configuration/high_security_source.rb +0 -2
- data/lib/new_relic/agent/configuration/security_policy_source.rb +0 -16
- data/lib/new_relic/agent/database.rb +0 -14
- data/lib/new_relic/agent/distributed_tracing/cross_app_tracing.rb +1 -2
- data/lib/new_relic/agent/error_collector.rb +1 -1
- data/lib/new_relic/agent/error_filter.rb +3 -3
- data/lib/new_relic/agent/instrumentation/active_job.rb +1 -1
- data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +1 -1
- data/lib/new_relic/agent/instrumentation/fiber/chain.rb +20 -0
- data/lib/new_relic/agent/instrumentation/fiber/instrumentation.rb +24 -0
- data/lib/new_relic/agent/instrumentation/fiber/prepend.rb +18 -0
- data/lib/new_relic/agent/instrumentation/fiber.rb +25 -0
- data/lib/new_relic/agent/instrumentation/grape.rb +1 -1
- data/lib/new_relic/agent/instrumentation/memcache.rb +2 -2
- data/lib/new_relic/agent/instrumentation/net_http.rb +1 -1
- data/lib/new_relic/agent/instrumentation/rake/instrumentation.rb +1 -8
- data/lib/new_relic/agent/instrumentation/rake.rb +1 -1
- data/lib/new_relic/agent/instrumentation/redis.rb +1 -1
- data/lib/new_relic/agent/instrumentation/resque.rb +1 -1
- data/lib/new_relic/agent/instrumentation/sequel.rb +4 -5
- data/lib/new_relic/agent/instrumentation/thread/instrumentation.rb +3 -7
- data/lib/new_relic/agent/monitors/cross_app_monitor.rb +0 -1
- data/lib/new_relic/agent/new_relic_service/security_policy_settings.rb +0 -1
- data/lib/new_relic/agent/new_relic_service.rb +1 -1
- data/lib/new_relic/agent/rules_engine/segment_terms_rule.rb +0 -1
- data/lib/new_relic/agent/samplers/delayed_job_sampler.rb +1 -1
- data/lib/new_relic/agent/tracer.rb +10 -1
- data/lib/new_relic/agent/transaction/abstract_segment.rb +2 -2
- data/lib/new_relic/agent/transaction/tracing.rb +2 -2
- data/lib/new_relic/agent/transaction.rb +17 -16
- data/lib/new_relic/agent.rb +1 -19
- data/lib/new_relic/cli/commands/install.rb +9 -9
- data/lib/new_relic/control/instance_methods.rb +1 -1
- data/lib/new_relic/local_environment.rb +0 -10
- data/lib/new_relic/supportability_helper.rb +0 -1
- data/lib/new_relic/version.rb +2 -2
- data/lib/newrelic_rpm.rb +1 -1
- data/lib/sequel/extensions/{newrelic_instrumentation.rb → new_relic_instrumentation.rb} +3 -3
- data/lib/sequel/plugins/{newrelic_instrumentation.rb → new_relic_instrumentation.rb} +3 -3
- data/lib/tasks/helpers/format.rb +1 -1
- data/lib/tasks/instrumentation_generator/instrumentation.thor +7 -10
- data/lib/tasks/instrumentation_generator/templates/Envfile.tt +1 -1
- data/newrelic.yml +5 -8
- data/newrelic_rpm.gemspec +16 -13
- metadata +13 -14
- data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +0 -83
- data/lib/new_relic/agent/instrumentation/authlogic.rb +0 -33
- data/lib/new_relic/agent/instrumentation/data_mapper.rb +0 -215
- data/lib/new_relic/agent/instrumentation/rainbows_instrumentation.rb +0 -36
- data/lib/new_relic/agent/instrumentation/sunspot.rb +0 -41
@@ -1,36 +0,0 @@
|
|
1
|
-
# This file is distributed under New Relic's license terms.
|
2
|
-
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
|
3
|
-
# frozen_string_literal: true
|
4
|
-
|
5
|
-
DependencyDetection.defer do
|
6
|
-
@name = :rainbows
|
7
|
-
|
8
|
-
depends_on do
|
9
|
-
defined?(Rainbows) && defined?(Rainbows::HttpServer)
|
10
|
-
end
|
11
|
-
|
12
|
-
executes do
|
13
|
-
NewRelic::Agent.logger.info('Installing Rainbows instrumentation')
|
14
|
-
NewRelic::Agent.logger.info('Detected Rainbows, please see additional documentation: https://newrelic.com/docs/troubleshooting/im-using-unicorn-and-i-dont-see-any-data')
|
15
|
-
|
16
|
-
deprecation_msg = 'The dispatcher rainbows is deprecated. It will be removed ' \
|
17
|
-
'in version 9.0.0. Please use a supported dispatcher instead. ' \
|
18
|
-
'Visit https://docs.newrelic.com/docs/apm/agents/ruby-agent/getting-started/ruby-agent-requirements-supported-frameworks for options.'
|
19
|
-
|
20
|
-
NewRelic::Agent.logger.log_once(
|
21
|
-
:warn,
|
22
|
-
:deprecated_rainbows_dispatcher,
|
23
|
-
deprecation_msg
|
24
|
-
)
|
25
|
-
end
|
26
|
-
|
27
|
-
executes do
|
28
|
-
Rainbows::HttpServer.class_eval do
|
29
|
-
old_worker_loop = instance_method(:worker_loop)
|
30
|
-
define_method(:worker_loop) do |worker|
|
31
|
-
NewRelic::Agent.after_fork(:force_reconnect => true)
|
32
|
-
old_worker_loop.bind(self).call(worker)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# This file is distributed under New Relic's license terms.
|
2
|
-
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
|
3
|
-
# frozen_string_literal: true
|
4
|
-
|
5
|
-
DependencyDetection.defer do
|
6
|
-
@name = :sunspot
|
7
|
-
|
8
|
-
depends_on do
|
9
|
-
defined?(Sunspot)
|
10
|
-
end
|
11
|
-
|
12
|
-
executes do
|
13
|
-
NewRelic::Agent.logger.info('Installing Rails Sunspot instrumentation')
|
14
|
-
deprecation_msg = 'The instrumentation for Sunspot is deprecated. ' \
|
15
|
-
'It will be removed in version 9.0.0.'
|
16
|
-
|
17
|
-
NewRelic::Agent.logger.log_once(
|
18
|
-
:warn,
|
19
|
-
:deprecated_sunspot,
|
20
|
-
deprecation_msg
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
|
-
executes do
|
25
|
-
Sunspot.module_eval do
|
26
|
-
class << self
|
27
|
-
%w[index index!].each do |method|
|
28
|
-
add_method_tracer method, 'SolrClient/Sunspot/index'
|
29
|
-
end
|
30
|
-
add_method_tracer :commit, 'SolrClient/Sunspot/commit'
|
31
|
-
|
32
|
-
%w[search more_like_this].each do |method|
|
33
|
-
add_method_tracer method, 'SolrClient/Sunspot/query'
|
34
|
-
end
|
35
|
-
%w[remove remove! remove_by_id remove_by_id! remove_all remove_all!].each do |method|
|
36
|
-
add_method_tracer method, 'SolrClient/Sunspot/delete'
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|