newrelic_rpm 3.1.0.beta3 → 3.1.0.beta4
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/README.rdoc +2 -2
- data/cert/cacert.pem +118 -151
- data/lib/new_relic/rack/developer_mode.rb +5 -0
- data/lib/new_relic/version.rb +1 -1
- data/newrelic_rpm.gemspec +3 -2
- data/test/new_relic/control_test.rb +10 -7
- data/test/new_relic/rack/developer_mode_test.rb +43 -0
- data/test/test_helper.rb +18 -0
- data/ui/views/newrelic/_show_sample_sql.rhtml +8 -4
- data/ui/views/newrelic/file/stylesheets/style.css +6 -0
- data/ui/views/newrelic/show_sample.rhtml +2 -1
- metadata +8 -6
data/README.rdoc
CHANGED
@@ -13,7 +13,7 @@ The New Relic Ruby Agent runs in one of two modes:
|
|
13
13
|
|
14
14
|
Low overhead instrumentation that captures detailed information on
|
15
15
|
your application running in production and transmits them to
|
16
|
-
|
16
|
+
newrelic.com where you can monitor them in real time.
|
17
17
|
|
18
18
|
==== Developer Mode
|
19
19
|
|
@@ -39,7 +39,7 @@ Environments" section under "Getting Started".
|
|
39
39
|
|
40
40
|
= Getting Started
|
41
41
|
|
42
|
-
Install the
|
42
|
+
Install the Ruby Agent as a gem. If you are using Rails you can
|
43
43
|
install the gem as a plug-in--details below.
|
44
44
|
|
45
45
|
gem install newrelic_rpm
|
data/cert/cacert.pem
CHANGED
@@ -1,151 +1,118 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
-----END CERTIFICATE-----
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
OyVhV6O4PXNdlsj7uvpZhtOCdStzIoZPEIYtvjgVfcNhyOg2T0is8u5icDG1uQgq
|
120
|
-
dA/gaZ7agWtQlaDfHRHigfDiMF3lQ6by1L+C1i7P+lhEQWGISEAOGisLGW1aFlbs
|
121
|
-
ZjJZIIUiej+4QSBAbKsAo72gQ9DOQdrxUCZJoQdQhkjjENg5BbRcxW99M+zykY5o
|
122
|
-
HBiXHtXvgcyfZXASfgiW3nSM64QxXs9vd4gfmFNF5wnVHCSOJs5r/NRp9SIciUTq
|
123
|
-
YmYKdpFyzxGxZUduYo8z1nGHmPedTxW+RvBbE+gNUtGxhauv8H+J/rc=
|
124
|
-
-----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tdEPx7
|
36
|
+
srJerJsOflN4WT5CBP51o62sgU7XAotexC3IUnbHLB/8gTKY0UvGkpMzNTEv/NgdRN3ggX+d6Yvh
|
37
|
+
ZJFiCzkIjKx0nVnZellSlxG5FntvRdOW2TF9AjYPnDtuzywNA0ZF66D0f0hExghAzN4bcLUprbqL
|
38
|
+
OzRldRtxIR0sFAqwlpW41uryZfspuk/qkZN0abby/+Ea0AzRdoXLiiW9l14sbxWZJue2Kf8i7MkC
|
39
|
+
x1YAzUm5s2x7UwQa4qjJqhIFI8LO57sEAszAR6LkxCkvW0VXiVHuPOtSCP8HNR6fNWpHSlaY0VqF
|
40
|
+
H4z1Ir+rzoPz4iIprn2DQKi6bA==
|
41
|
+
-----END CERTIFICATE-----
|
42
|
+
|
43
|
+
GeoTrust Universal CA
|
44
|
+
=====================
|
45
|
+
-----BEGIN CERTIFICATE-----
|
46
|
+
MIIFaDCCA1CgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
|
47
|
+
R2VvVHJ1c3QgSW5jLjEeMBwGA1UEAxMVR2VvVHJ1c3QgVW5pdmVyc2FsIENBMB4XDTA0MDMwNDA1
|
48
|
+
MDAwMFoXDTI5MDMwNDA1MDAwMFowRTELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IElu
|
49
|
+
Yy4xHjAcBgNVBAMTFUdlb1RydXN0IFVuaXZlcnNhbCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIP
|
50
|
+
ADCCAgoCggIBAKYVVaCjxuAfjJ0hUNfBvitbtaSeodlyWL0AG0y/YckUHUWCq8YdgNY96xCcOq9t
|
51
|
+
JPi8cQGeBvV8Xx7BDlXKg5pZMK4ZyzBIle0iN430SppyZj6tlcDgFgDgEB8rMQ7XlFTTQjOgNB0e
|
52
|
+
RXbdT8oYN+yFFXoZCPzVx5zw8qkuEKmS5j1YPakWaDwvdSEYfyh3peFhF7em6fgemdtzbvQKoi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+f725ZDQbYKxek0nxru18UGkiPGkzns0ccjkxF
|
66
|
+
KyDuSN/n3QmOGKjaQI2SJhFTYXNd673nxE0pN2HrrDktZy4W1vUAg4WhzH92xH3kt0tm7wNFYGm2
|
67
|
+
DFKWkoRepqO1pD4r2czYG0eq8kTaT/kD6PAUyz/zg97QwVTjt+gKN02LIFkDMBmhLMi9ER/frslK
|
68
|
+
xfMnZmaGrGiR/9nmUxwPi1xpZQomyB40w11Re9epnAahNt3ViZS82eQtDF4JbAiXfKM9fJP/P6EU
|
69
|
+
p8+1Xevb2xzEdt+Iub1FBZUbrvxGakyvSOPOrg/SfuvmbJxPgWp6ZKy7PtXny3YuxadIwVyQD8vI
|
70
|
+
P/rmMuGNG2+k5o7Y+SlIis5z/iw=
|
71
|
+
-----END CERTIFICATE-----
|
72
|
+
|
73
|
+
GeoTrust Universal CA 2
|
74
|
+
=======================
|
75
|
+
-----BEGIN CERTIFICATE-----
|
76
|
+
MIIFbDCCA1SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBHMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
|
77
|
+
R2VvVHJ1c3QgSW5jLjEgMB4GA1UEAxMXR2VvVHJ1c3QgVW5pdmVyc2FsIENBIDIwHhcNMDQwMzA0
|
78
|
+
MDUwMDAwWhcNMjkwMzA0MDUwMDAwWjBHMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3Qg
|
79
|
+
SW5jLjEgMB4GA1UEAxMXR2VvVHJ1c3QgVW5pdmVyc2FsIENBIDIwggIiMA0GCSqGSIb3DQEBAQUA
|
80
|
+
A4ICDwAwggIKAoICAQCzVFLByT7y2dyxUxpZKeexw0Uo5dfR7cXFS6GqdHtXr0om/Nj1XqduGdt0
|
81
|
+
DE81WzILAePb63p3NeqqWuDW6KFXlPCQo3RWlEQwAx5cTiuFJnSCegx2oG9NzkEtoBUGFF+3Qs17
|
82
|
+
j1hhNNwqCPkuwwGmIkQcTAeC5lvO0Ep8BNMZ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V7xdlfUNLjUA86iOe/FP3gx7kCAwEAAaOCAQkwggEFMHAG
|
110
|
+
A1UdHwRpMGcwZaBjoGGkXzBdMQswCQYDVQQGEwJVUzEQMA4GA1UEChMHRXF1aWZheDEtMCsGA1UE
|
111
|
+
CxMkRXF1aWZheCBTZWN1cmUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoG
|
112
|
+
A1UdEAQTMBGBDzIwMTgwODIyMTY0MTUxWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUSOZo+SvS
|
113
|
+
spXXR9gjIBBPM5iQn9QwHQYDVR0OBBYEFEjmaPkr0rKV10fYIyAQTzOYkJ/UMAwGA1UdEwQFMAMB
|
114
|
+
Af8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUAA4GBAFjOKer89961
|
115
|
+
zgK5F7WF0bnj4JXMJTENAKaSbn+2kmOeUJXRmm/kEd5jhW6Y7qj/WsjTVbJmcVfewCHrPSqnI0kB
|
116
|
+
BIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee95
|
117
|
+
70+sB3c4
|
118
|
+
-----END CERTIFICATE-----
|
@@ -224,6 +224,11 @@ module NewRelic
|
|
224
224
|
@sample_controller_name = metric_parser.controller_name
|
225
225
|
@sample_action_name = metric_parser.action_name
|
226
226
|
|
227
|
+
@sql_segments = @sample.sql_segments
|
228
|
+
if params['d']
|
229
|
+
@sql_segments.sort!{|a,b| b.duration <=> a.duration }
|
230
|
+
end
|
231
|
+
|
227
232
|
render(:show_sample)
|
228
233
|
end
|
229
234
|
|
data/lib/new_relic/version.rb
CHANGED
@@ -4,7 +4,7 @@ module NewRelic
|
|
4
4
|
MAJOR = 3
|
5
5
|
MINOR = 1
|
6
6
|
TINY = 0
|
7
|
-
BUILD = '
|
7
|
+
BUILD = 'beta4' #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
|
8
8
|
STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
|
9
9
|
end
|
10
10
|
|
data/newrelic_rpm.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{newrelic_rpm}
|
8
|
-
s.version = "3.1.0.
|
8
|
+
s.version = "3.1.0.beta4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bill Kayser", "Justin George"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-06-06}
|
13
13
|
s.description = %q{New Relic is a performance management system, developed by New Relic,
|
14
14
|
Inc (http://www.newrelic.com). New Relic provides you with deep
|
15
15
|
information about the performance of your web application as it runs
|
@@ -186,6 +186,7 @@ http://github.com/newrelic/rpm/
|
|
186
186
|
"test/new_relic/metric_data_test.rb",
|
187
187
|
"test/new_relic/metric_spec_test.rb",
|
188
188
|
"test/new_relic/rack/all_test.rb",
|
189
|
+
"test/new_relic/rack/developer_mode_test.rb",
|
189
190
|
"test/new_relic/stats_test.rb",
|
190
191
|
"test/new_relic/transaction_analysis/segment_summary_test.rb",
|
191
192
|
"test/new_relic/transaction_analysis_test.rb",
|
@@ -19,13 +19,16 @@ class NewRelic::ControlTest < Test::Unit::TestCase
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def test_cert_file
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
22
|
+
require 'socket'
|
23
|
+
require 'openssl'
|
24
|
+
|
25
|
+
s = TCPSocket.new 'collector.newrelic.com', 443
|
26
|
+
ctx = OpenSSL::SSL::SSLContext.new
|
27
|
+
ctx.ca_path = @c.cert_file_path
|
28
|
+
ctx.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
29
|
+
s = OpenSSL::SSL::SSLSocket.new s, ctx
|
30
|
+
s.connect
|
31
|
+
# should not raise an error
|
29
32
|
end
|
30
33
|
|
31
34
|
def test_monitor_mode
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# ENV['SKIP_RAILS'] = 'true'
|
2
|
+
require File.expand_path(File.join(File.dirname(__FILE__),'..', '..',
|
3
|
+
'test_helper'))
|
4
|
+
require 'rack/test'
|
5
|
+
require 'new_relic/rack/developer_mode'
|
6
|
+
|
7
|
+
ENV['RACK_ENV'] = 'test'
|
8
|
+
|
9
|
+
class DeveloperModeTest < Test::Unit::TestCase
|
10
|
+
include Rack::Test::Methods
|
11
|
+
include TransactionSampleTestHelper
|
12
|
+
|
13
|
+
def app
|
14
|
+
mock_app = lambda { |env| [500, {}, "Don't touch me!"] }
|
15
|
+
NewRelic::Rack::DeveloperMode.new(mock_app)
|
16
|
+
end
|
17
|
+
|
18
|
+
def setup
|
19
|
+
@sampler = NewRelic::Agent::TransactionSampler.new
|
20
|
+
run_sample_trace_on(@sampler, '/here')
|
21
|
+
run_sample_trace_on(@sampler, '/there')
|
22
|
+
run_sample_trace_on(@sampler, '/somewhere')
|
23
|
+
NewRelic::Agent.instance.stubs(:transaction_sampler).returns(@sampler)
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_index_displays_all_samples
|
27
|
+
get '/newrelic'
|
28
|
+
|
29
|
+
assert last_response.ok?
|
30
|
+
assert last_response.body.include?('/here')
|
31
|
+
assert last_response.body.include?('/there')
|
32
|
+
assert last_response.body.include?('/somewhere')
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_show_sample_summary_displays_sample_details
|
36
|
+
get "/newrelic/show_sample_summary?id=#{@sampler.samples[0].sample_id}"
|
37
|
+
|
38
|
+
assert last_response.ok?
|
39
|
+
assert last_response.body.include?('/here')
|
40
|
+
assert last_response.body.include?('SandwichesController')
|
41
|
+
assert last_response.body.include?('index')
|
42
|
+
end
|
43
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -123,4 +123,22 @@ module TransactionSampleTestHelper
|
|
123
123
|
|
124
124
|
sampler.samples[0]
|
125
125
|
end
|
126
|
+
|
127
|
+
def run_sample_trace_on(sampler, path='/path')
|
128
|
+
sampler.notice_first_scope_push Time.now.to_f
|
129
|
+
sampler.notice_transaction path, path, {}
|
130
|
+
sampler.notice_push_scope "Controller/sandwiches/index"
|
131
|
+
sampler.notice_sql("SELECT * FROM sandwiches WHERE bread = 'wheat'", nil, 0)
|
132
|
+
sampler.notice_push_scope "ab"
|
133
|
+
sampler.notice_sql("SELECT * FROM sandwiches WHERE bread = 'white'", nil, 0)
|
134
|
+
yield sampler if block_given?
|
135
|
+
sampler.notice_pop_scope "ab"
|
136
|
+
sampler.notice_push_scope "lew"
|
137
|
+
sampler.notice_sql("SELECT * FROM sandwiches WHERE bread = 'french'", nil, 0)
|
138
|
+
sampler.notice_pop_scope "lew"
|
139
|
+
sampler.notice_pop_scope "Controller/sandwiches/index"
|
140
|
+
sampler.notice_scope_empty
|
141
|
+
sampler.samples[0]
|
142
|
+
end
|
143
|
+
|
126
144
|
end
|
@@ -6,15 +6,19 @@
|
|
6
6
|
so that the rows logger is loaded first.
|
7
7
|
<% else %>
|
8
8
|
<%= render :partial => 'segment_limit_message' if trace_row_display_limit_reached %>
|
9
|
-
<table width="100%">
|
9
|
+
<table width="100%" class="segment_list_table">
|
10
10
|
<thead>
|
11
11
|
<tr>
|
12
|
-
<td>
|
13
|
-
|
12
|
+
<td>
|
13
|
+
<%= link_to_if params['d'], "Timestamp", "show_sample_sql?id=#{sample.sample_id}" %>
|
14
|
+
</td>
|
15
|
+
<td colspan="2">
|
16
|
+
<%= link_to_if !params['d'], "Duration", "show_sample_sql?id=#{sample.sample_id}&d=y" %>
|
17
|
+
</td>
|
14
18
|
<td>SQL</td>
|
15
19
|
</tr>
|
16
20
|
</thead>
|
17
21
|
|
18
|
-
|
22
|
+
<%= render :partial => 'sql_row', :collection => @sql_segments[0...trace_row_display_limit] %>
|
19
23
|
</table>
|
20
24
|
<% end %>
|
@@ -70,9 +70,10 @@
|
|
70
70
|
<%= show_view_link 'SQL', 'show_sample_sql' %>
|
71
71
|
</div>
|
72
72
|
<br/>
|
73
|
+
|
73
74
|
<%= %w[show_sample_summary show_sample_sql show_sample_detail].collect do |p|
|
74
75
|
options = {:align => 'center', :id => p}
|
75
|
-
options[:style] = 'display: none' unless p
|
76
|
+
options[:style] = 'display: none' unless @req.path.include?(p)
|
76
77
|
content_tag('div', render(:partial => p), options)
|
77
78
|
end.join(' ') %>
|
78
79
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 62196443
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 1
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
|
10
|
+
- beta
|
11
|
+
- 4
|
12
|
+
version: 3.1.0.beta4
|
12
13
|
platform: ruby
|
13
14
|
authors:
|
14
15
|
- Bill Kayser
|
@@ -17,7 +18,7 @@ autorequire:
|
|
17
18
|
bindir: bin
|
18
19
|
cert_chain: []
|
19
20
|
|
20
|
-
date: 2011-
|
21
|
+
date: 2011-06-06 00:00:00 -07:00
|
21
22
|
default_executable:
|
22
23
|
dependencies:
|
23
24
|
- !ruby/object:Gem::Dependency
|
@@ -243,6 +244,7 @@ files:
|
|
243
244
|
- test/new_relic/metric_data_test.rb
|
244
245
|
- test/new_relic/metric_spec_test.rb
|
245
246
|
- test/new_relic/rack/all_test.rb
|
247
|
+
- test/new_relic/rack/developer_mode_test.rb
|
246
248
|
- test/new_relic/stats_test.rb
|
247
249
|
- test/new_relic/transaction_analysis/segment_summary_test.rb
|
248
250
|
- test/new_relic/transaction_analysis_test.rb
|
@@ -389,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
389
391
|
requirements: []
|
390
392
|
|
391
393
|
rubyforge_project:
|
392
|
-
rubygems_version: 1.
|
394
|
+
rubygems_version: 1.4.2
|
393
395
|
signing_key:
|
394
396
|
specification_version: 3
|
395
397
|
summary: New Relic Ruby Agent
|