newrelic_rpm 2.13.6.beta2 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of newrelic_rpm might be problematic. Click here for more details.
- data/cert/cacert.pem +149 -53
- data/cert/oldsite.pem +28 -0
- data/cert/site.pem +27 -0
- data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +26 -5
- data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +65 -41
- data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +30 -21
- data/lib/new_relic/agent/instrumentation/rails/active_record_instrumentation.rb +6 -0
- data/lib/new_relic/agent/instrumentation/rails/errors.rb +30 -18
- data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +14 -4
- data/lib/new_relic/agent/instrumentation/rails3/active_record_instrumentation.rb +9 -3
- data/lib/new_relic/agent/instrumentation/rails3/errors.rb +13 -3
- data/lib/new_relic/agent/samplers/delayed_job_lock_sampler.rb +1 -0
- data/lib/new_relic/control.rb +12 -176
- data/lib/new_relic/control/class_methods.rb +39 -0
- data/lib/new_relic/control/configuration.rb +1 -0
- data/lib/new_relic/control/frameworks/external.rb +9 -6
- data/lib/new_relic/control/frameworks/merb.rb +24 -18
- data/lib/new_relic/control/frameworks/rails.rb +126 -112
- data/lib/new_relic/control/frameworks/rails3.rb +54 -49
- data/lib/new_relic/control/frameworks/ruby.rb +33 -27
- data/lib/new_relic/control/frameworks/sinatra.rb +16 -11
- data/lib/new_relic/control/instance_methods.rb +150 -0
- data/lib/new_relic/control/instrumentation.rb +1 -0
- data/lib/new_relic/control/logging_methods.rb +1 -0
- data/lib/new_relic/control/profiling.rb +1 -0
- data/lib/new_relic/control/server_methods.rb +7 -1
- data/lib/new_relic/delayed_job_injection.rb +2 -1
- data/lib/new_relic/version.rb +3 -3
- data/lib/newrelic_rpm.rb +3 -7
- data/newrelic_rpm.gemspec +9 -4
- data/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb +6 -0
- data/test/new_relic/control_test.rb +16 -1
- metadata +25 -52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lBBYwFAYIKwYB
|
16
|
+
BQUHAwEGCCsGAQUFBwMCMCcGA1UdEQQgMB6CDioubmV3cmVsaWMuY29tggxuZXdy
|
17
|
+
ZWxpYy5jb20wPQYDVR0fBDYwNDAyoDCgLoYsaHR0cDovL2d0c3NsLWNybC5nZW90
|
18
|
+
cnVzdC5jb20vY3Jscy9ndHNzbC5jcmwwHQYDVR0OBBYEFIGySnbWmSQHcvbson/A
|
19
|
+
hDGIuIamMAwGA1UdEwEB/wQCMAAwQwYIKwYBBQUHAQEENzA1MDMGCCsGAQUFBzAC
|
20
|
+
hidodHRwOi8vZ3Rzc2wtYWlhLmdlb3RydXN0LmNvbS9ndHNzbC5jcnQwDQYJKoZI
|
21
|
+
hvcNAQEFBQADggEBAHuO8i5vPkZfPhT1a9GCn49J8Ada+faVpGnZ0nE3ufqhD52d
|
22
|
+
dZaVyUgft+2s+ksxIGjCwl3X+jeLfOL+dqqt77E1JRAskrCIfFHeQDS/7P6Ch3pE
|
23
|
+
zm8uTkMARuRARSi+O0jwTfYH5ApRb7eumgtz8sELg94yPCAKeegrK0zqhNGF6Bnp
|
24
|
+
tuSN36tUDtZb1Xy+sz6RzNpQJS/b1KH7e+jbEudctO8b6mP8/5bGoDcWQqPn4YWd
|
25
|
+
UAkOShAeRtdc0jsn62VlqDEfQQ16CsmD1Hoh9Mxhwj9rSqwpDSc9f0isJ6xypDhM
|
26
|
+
4cNwyeIvhj++8Ir5LdCmWGLcUtNqUs4jK36ph7k=
|
27
|
+
-----END CERTIFICATE-----
|
@@ -11,13 +11,34 @@ DependencyDetection.defer do
|
|
11
11
|
|
12
12
|
executes do
|
13
13
|
Delayed::Job.class_eval do
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
15
|
+
if self.instance_methods.include?('name')
|
16
|
+
add_transaction_tracer "invoke_job", :category => 'OtherTransaction/DelayedJob', :path => '#{self.name}'
|
17
|
+
else
|
18
|
+
add_transaction_tracer "invoke_job", :category => 'OtherTransaction/DelayedJob'
|
19
|
+
end
|
19
20
|
end
|
20
21
|
end
|
22
|
+
|
23
|
+
executes do
|
24
|
+
Delayed::Job.instance_eval do
|
25
|
+
if self.respond_to?('after_fork')
|
26
|
+
if method_defined?(:after_fork)
|
27
|
+
def after_fork_with_newrelic
|
28
|
+
NewRelic::Agent.after_fork(:force_reconnect => true)
|
29
|
+
after_fork_without_newrelic
|
30
|
+
end
|
31
|
+
|
32
|
+
alias_method :after_fork_without_newrelic, :after_fork
|
33
|
+
alias_method :after_fork, :after_fork_with_newrelic
|
34
|
+
else
|
35
|
+
def after_fork
|
36
|
+
NewRelic::Agent.after_fork(:force_reconnect => true)
|
37
|
+
super
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
21
42
|
end
|
22
43
|
end
|
23
44
|
|
@@ -1,59 +1,83 @@
|
|
1
|
+
DependencyDetection.defer do
|
2
|
+
depends_on do
|
3
|
+
defined?(ActionController) && defined?(ActionController::Base)
|
4
|
+
end
|
5
|
+
|
6
|
+
depends_on do
|
7
|
+
defined?(Rails) && Rails::VERSION::MAJOR.to_i == 2
|
8
|
+
end
|
1
9
|
|
2
|
-
|
10
|
+
depends_on do
|
11
|
+
!NewRelic::Control.instance['disable_view_instrumentation']
|
12
|
+
end
|
3
13
|
|
4
|
-
|
14
|
+
executes do
|
15
|
+
|
16
|
+
case Rails::VERSION::STRING
|
5
17
|
|
6
18
|
when /^(1\.|2\.0)/ # Rails 1.* - 2.0
|
7
|
-
|
8
|
-
|
9
|
-
|
19
|
+
ActionController::Base.class_eval do
|
20
|
+
add_method_tracer :render, 'View/#{newrelic_metric_path}/Rendering'
|
21
|
+
end
|
10
22
|
|
11
23
|
when /^2\.1\./ # Rails 2.1
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
24
|
+
ActionView::PartialTemplate.class_eval do
|
25
|
+
add_method_tracer :render, 'View/#{path_without_extension[%r{^(/.*/)?(.*)$},2]}.#{@view.template_format}.#{extension}/Partial'
|
26
|
+
end
|
27
|
+
# this is for template rendering, as opposed to partial rendering.
|
28
|
+
ActionView::Template.class_eval do
|
29
|
+
add_method_tracer :render, 'View/#{(path_without_extension || @view.controller.newrelic_metric_path)[%r{^(/.*/)?(.*)$},2]}.#{@view.template_format}.#{extension}/Rendering'
|
30
|
+
end
|
19
31
|
|
20
32
|
when /^2\./ # Rails 2.2-2.*
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
33
|
+
ActionView::RenderablePartial.module_eval do
|
34
|
+
add_method_tracer :render_partial, 'View/#{path[%r{^(/.*/)?(.*)$},2]}/Partial'
|
35
|
+
end
|
36
|
+
ActionView::Template.class_eval do
|
37
|
+
add_method_tracer :render, 'View/#{path[%r{^(/.*/)?(.*)$},2]}/Rendering'
|
38
|
+
end
|
26
39
|
end
|
27
|
-
end
|
40
|
+
end
|
41
|
+
end
|
28
42
|
|
29
|
-
|
30
|
-
|
43
|
+
DependencyDetection.defer do
|
44
|
+
depends_on do
|
45
|
+
defined?(ActionController) && defined?(ActionController::Base)
|
46
|
+
end
|
31
47
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
alias_method :perform_action, :perform_action_with_newrelic_trace
|
36
|
-
private :perform_action
|
48
|
+
depends_on do
|
49
|
+
defined?(Rails) && Rails::VERSION::MAJOR.to_i == 2
|
50
|
+
end
|
37
51
|
|
38
|
-
|
39
|
-
write_inheritable_attribute(attr_name, value)
|
40
|
-
end
|
52
|
+
executes do
|
41
53
|
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
ActionController::Base.class_eval do
|
55
|
+
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
56
|
+
|
57
|
+
# Compare with #alias_method_chain, which is not available in
|
58
|
+
# Rails 1.1:
|
59
|
+
alias_method :perform_action_without_newrelic_trace, :perform_action
|
60
|
+
alias_method :perform_action, :perform_action_with_newrelic_trace
|
61
|
+
private :perform_action
|
62
|
+
|
63
|
+
def self.newrelic_write_attr(attr_name, value) # :nodoc:
|
64
|
+
write_inheritable_attribute(attr_name, value)
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.newrelic_read_attr(attr_name) # :nodoc:
|
68
|
+
read_inheritable_attribute(attr_name)
|
69
|
+
end
|
45
70
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
71
|
+
# determine the path that is used in the metric name for
|
72
|
+
# the called controller action
|
73
|
+
def newrelic_metric_path(action_name_override = nil)
|
74
|
+
action_part = action_name_override || action_name
|
75
|
+
if action_name_override || self.class.action_methods.include?(action_part)
|
76
|
+
"#{self.class.controller_path}/#{action_part}"
|
77
|
+
else
|
78
|
+
"#{self.class.controller_path}/(other)"
|
79
|
+
end
|
54
80
|
end
|
55
81
|
end
|
56
82
|
end
|
57
|
-
else
|
58
|
-
NewRelic::Agent.instance.log.debug "WARNING: ActionController instrumentation not added"
|
59
83
|
end
|
@@ -1,27 +1,36 @@
|
|
1
|
-
|
1
|
+
DependencyDetection.defer do
|
2
|
+
depends_on do
|
3
|
+
defined?(ActionWebService)
|
4
|
+
end
|
2
5
|
|
3
|
-
|
4
|
-
|
6
|
+
executes do
|
7
|
+
# NewRelic Agent instrumentation for WebServices
|
5
8
|
|
6
|
-
|
7
|
-
|
8
|
-
add_method_tracer :decode_request, "WebService/Xml Rpc/XML Decode"
|
9
|
-
add_method_tracer :encode_request, "WebService/Xml Rpc/XML Encode"
|
10
|
-
add_method_tracer :decode_response, "WebService/Xml Rpc/XML Decode"
|
11
|
-
add_method_tracer :encode_response, "WebService/Xml Rpc/XML Encode"
|
12
|
-
end
|
9
|
+
# Note Action Web Service is removed from default package in rails
|
10
|
+
# 2.0, this is purely here as a service to our legacy customers.
|
13
11
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
# instrumentation for Web Service martialing - XML RPC
|
13
|
+
ActionWebService::Protocol::XmlRpc::XmlRpcProtocol.class_eval do
|
14
|
+
add_method_tracer :decode_request, "WebService/Xml Rpc/XML Decode"
|
15
|
+
add_method_tracer :encode_request, "WebService/Xml Rpc/XML Encode"
|
16
|
+
add_method_tracer :decode_response, "WebService/Xml Rpc/XML Decode"
|
17
|
+
add_method_tracer :encode_response, "WebService/Xml Rpc/XML Encode"
|
18
|
+
end
|
21
19
|
|
22
|
-
|
23
|
-
|
24
|
-
add_method_tracer :
|
20
|
+
# instrumentation for Web Service martialing - Soap
|
21
|
+
ActionWebService::Protocol::Soap::SoapProtocol.class_eval do
|
22
|
+
add_method_tracer :decode_request, "WebService/Soap/XML Decode"
|
23
|
+
add_method_tracer :encode_request, "WebService/Soap/XML Encode"
|
24
|
+
add_method_tracer :decode_response, "WebService/Soap/XML Decode"
|
25
|
+
add_method_tracer :encode_response, "WebService/Soap/XML Encode"
|
26
|
+
end
|
27
|
+
|
28
|
+
if defined?(ActionController) && defined?(ActionController::Base)
|
29
|
+
ActionController::Base.class_eval do
|
30
|
+
if method_defined? :perform_invocation
|
31
|
+
add_method_tracer :perform_invocation, 'WebService/#{controller_name}/#{args.first}'
|
32
|
+
end
|
33
|
+
end
|
25
34
|
end
|
26
|
-
end
|
35
|
+
end
|
27
36
|
end
|