oboe 2.7.16.1-java → 2.7.17.1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile +2 -0
- data/lib/oboe/config.rb +62 -13
- data/lib/oboe/inst/excon.rb +2 -1
- data/lib/oboe/inst/http.rb +8 -1
- data/lib/oboe/inst/httpclient.rb +173 -0
- data/lib/oboe/inst/rack.rb +6 -3
- data/lib/oboe/inst/typhoeus.rb +9 -5
- data/lib/oboe/util.rb +20 -0
- data/lib/oboe/version.rb +1 -1
- data/lib/rails/generators/oboe/templates/oboe_initializer.rb +33 -15
- data/test/instrumentation/excon_test.rb +66 -29
- data/test/instrumentation/faraday_test.rb +108 -63
- data/test/instrumentation/http_test.rb +63 -26
- data/test/instrumentation/httpclient_test.rb +296 -0
- data/test/instrumentation/rack_test.rb +40 -1
- data/test/instrumentation/rest-client_test.rb +65 -71
- data/test/instrumentation/typhoeus_test.rb +32 -25
- data/test/minitest_helper.rb +1 -0
- data/test/support/config_test.rb +52 -2
- metadata +30 -27
@@ -32,15 +32,13 @@ if RUBY_VERSION >= '1.9.3'
|
|
32
32
|
response = nil
|
33
33
|
|
34
34
|
Oboe::API.start_trace('rest_client_test') do
|
35
|
-
response = RestClient.get 'http://
|
35
|
+
response = RestClient.get 'http://127.0.0.1:8101/'
|
36
36
|
end
|
37
37
|
|
38
38
|
traces = get_all_traces
|
39
|
-
traces.count.must_equal
|
39
|
+
traces.count.must_equal 10
|
40
40
|
|
41
|
-
|
42
|
-
# stack instead so we can validate cross-app traces.
|
43
|
-
# valid_edges?(traces).must_equal true
|
41
|
+
valid_edges?(traces).must_equal true
|
44
42
|
validate_outer_layers(traces, 'rest_client_test')
|
45
43
|
|
46
44
|
traces[1]['Layer'].must_equal 'rest-client'
|
@@ -49,21 +47,21 @@ if RUBY_VERSION >= '1.9.3'
|
|
49
47
|
traces[2]['Layer'].must_equal 'net-http'
|
50
48
|
traces[2]['Label'].must_equal 'entry'
|
51
49
|
|
52
|
-
traces[
|
53
|
-
traces[
|
54
|
-
traces[
|
55
|
-
traces[
|
56
|
-
traces[
|
57
|
-
traces[
|
58
|
-
traces[
|
59
|
-
traces[
|
60
|
-
traces[
|
50
|
+
traces[6]['Layer'].must_equal 'net-http'
|
51
|
+
traces[6]['Label'].must_equal 'info'
|
52
|
+
traces[6]['IsService'].must_equal 1
|
53
|
+
traces[6]['RemoteProtocol'].must_equal 'HTTP'
|
54
|
+
traces[6]['RemoteHost'].must_equal '127.0.0.1:8101'
|
55
|
+
traces[6]['ServiceArg'].must_equal '/'
|
56
|
+
traces[6]['HTTPMethod'].must_equal 'GET'
|
57
|
+
traces[6]['HTTPStatus'].must_equal "200"
|
58
|
+
traces[6].key?('Backtrace').must_equal Oboe::Config[:nethttp][:collect_backtraces]
|
61
59
|
|
62
|
-
traces[
|
63
|
-
traces[
|
60
|
+
traces[7]['Layer'].must_equal 'net-http'
|
61
|
+
traces[7]['Label'].must_equal 'exit'
|
64
62
|
|
65
|
-
traces[
|
66
|
-
traces[
|
63
|
+
traces[8]['Layer'].must_equal 'rest-client'
|
64
|
+
traces[8]['Label'].must_equal 'exit'
|
67
65
|
|
68
66
|
response.headers.key?(:x_trace).wont_equal nil
|
69
67
|
xtrace = response.headers[:x_trace]
|
@@ -74,11 +72,11 @@ if RUBY_VERSION >= '1.9.3'
|
|
74
72
|
response = nil
|
75
73
|
|
76
74
|
Oboe::API.start_trace('rest_client_test') do
|
77
|
-
response = RestClient.get 'http://
|
75
|
+
response = RestClient.get 'http://127.0.0.1:8101/?a=1'
|
78
76
|
end
|
79
77
|
|
80
78
|
traces = get_all_traces
|
81
|
-
traces.count.must_equal
|
79
|
+
traces.count.must_equal 10
|
82
80
|
|
83
81
|
# FIXME: We need to switch from making external calls to an internal test
|
84
82
|
# stack instead so we can validate cross-app traces.
|
@@ -91,36 +89,34 @@ if RUBY_VERSION >= '1.9.3'
|
|
91
89
|
traces[2]['Layer'].must_equal 'net-http'
|
92
90
|
traces[2]['Label'].must_equal 'entry'
|
93
91
|
|
94
|
-
traces[
|
95
|
-
traces[
|
96
|
-
traces[
|
97
|
-
traces[
|
98
|
-
traces[
|
99
|
-
traces[
|
100
|
-
traces[
|
101
|
-
traces[
|
102
|
-
traces[
|
92
|
+
traces[6]['Layer'].must_equal 'net-http'
|
93
|
+
traces[6]['Label'].must_equal 'info'
|
94
|
+
traces[6]['IsService'].must_equal 1
|
95
|
+
traces[6]['RemoteProtocol'].must_equal 'HTTP'
|
96
|
+
traces[6]['RemoteHost'].must_equal '127.0.0.1:8101'
|
97
|
+
traces[6]['ServiceArg'].must_equal '/?a=1'
|
98
|
+
traces[6]['HTTPMethod'].must_equal 'GET'
|
99
|
+
traces[6]['HTTPStatus'].must_equal "200"
|
100
|
+
traces[6].key?('Backtrace').must_equal Oboe::Config[:nethttp][:collect_backtraces]
|
103
101
|
|
104
|
-
traces[
|
105
|
-
traces[
|
102
|
+
traces[7]['Layer'].must_equal 'net-http'
|
103
|
+
traces[7]['Label'].must_equal 'exit'
|
106
104
|
|
107
|
-
traces[
|
108
|
-
traces[
|
105
|
+
traces[8]['Layer'].must_equal 'rest-client'
|
106
|
+
traces[8]['Label'].must_equal 'exit'
|
109
107
|
end
|
110
108
|
|
111
109
|
it 'should trace a raw POST request' do
|
112
110
|
response = nil
|
113
111
|
|
114
112
|
Oboe::API.start_trace('rest_client_test') do
|
115
|
-
response = RestClient.post 'http://
|
113
|
+
response = RestClient.post 'http://127.0.0.1:8101/', :param1 => 'one', :nested => { :param2 => 'two' }
|
116
114
|
end
|
117
115
|
|
118
116
|
traces = get_all_traces
|
119
|
-
traces.count.must_equal
|
117
|
+
traces.count.must_equal 10
|
120
118
|
|
121
|
-
|
122
|
-
# stack instead so we can validate cross-app traces.
|
123
|
-
# valid_edges?(traces).must_equal true
|
119
|
+
valid_edges?(traces).must_equal true
|
124
120
|
validate_outer_layers(traces, 'rest_client_test')
|
125
121
|
|
126
122
|
traces[1]['Layer'].must_equal 'rest-client'
|
@@ -129,37 +125,35 @@ if RUBY_VERSION >= '1.9.3'
|
|
129
125
|
traces[2]['Layer'].must_equal 'net-http'
|
130
126
|
traces[2]['Label'].must_equal 'entry'
|
131
127
|
|
132
|
-
traces[
|
133
|
-
traces[
|
134
|
-
traces[
|
135
|
-
traces[
|
136
|
-
traces[
|
137
|
-
traces[
|
138
|
-
traces[
|
139
|
-
traces[
|
140
|
-
traces[
|
128
|
+
traces[6]['Layer'].must_equal 'net-http'
|
129
|
+
traces[6]['Label'].must_equal 'info'
|
130
|
+
traces[6]['IsService'].must_equal 1
|
131
|
+
traces[6]['RemoteProtocol'].must_equal 'HTTP'
|
132
|
+
traces[6]['RemoteHost'].must_equal '127.0.0.1:8101'
|
133
|
+
traces[6]['ServiceArg'].must_equal '/'
|
134
|
+
traces[6]['HTTPMethod'].must_equal 'POST'
|
135
|
+
traces[6]['HTTPStatus'].must_equal "200"
|
136
|
+
traces[6].key?('Backtrace').must_equal Oboe::Config[:nethttp][:collect_backtraces]
|
141
137
|
|
142
|
-
traces[
|
143
|
-
traces[
|
138
|
+
traces[7]['Layer'].must_equal 'net-http'
|
139
|
+
traces[7]['Label'].must_equal 'exit'
|
144
140
|
|
145
|
-
traces[
|
146
|
-
traces[
|
141
|
+
traces[8]['Layer'].must_equal 'rest-client'
|
142
|
+
traces[8]['Label'].must_equal 'exit'
|
147
143
|
end
|
148
144
|
|
149
145
|
it 'should trace a ActiveResource style GET request' do
|
150
146
|
response = nil
|
151
147
|
|
152
148
|
Oboe::API.start_trace('rest_client_test') do
|
153
|
-
resource = RestClient::Resource.new 'http://
|
149
|
+
resource = RestClient::Resource.new 'http://127.0.0.1:8101/?a=1'
|
154
150
|
response = resource.get
|
155
151
|
end
|
156
152
|
|
157
153
|
traces = get_all_traces
|
158
|
-
traces.count.must_equal
|
154
|
+
traces.count.must_equal 10
|
159
155
|
|
160
|
-
|
161
|
-
# stack instead so we can validate cross-app traces.
|
162
|
-
# valid_edges?(traces).must_equal true
|
156
|
+
valid_edges?(traces).must_equal true
|
163
157
|
validate_outer_layers(traces, 'rest_client_test')
|
164
158
|
|
165
159
|
traces[1]['Layer'].must_equal 'rest-client'
|
@@ -168,21 +162,21 @@ if RUBY_VERSION >= '1.9.3'
|
|
168
162
|
traces[2]['Layer'].must_equal 'net-http'
|
169
163
|
traces[2]['Label'].must_equal 'entry'
|
170
164
|
|
171
|
-
traces[
|
172
|
-
traces[
|
173
|
-
traces[
|
174
|
-
traces[
|
175
|
-
traces[
|
176
|
-
traces[
|
177
|
-
traces[
|
178
|
-
traces[
|
179
|
-
traces[
|
165
|
+
traces[6]['Layer'].must_equal 'net-http'
|
166
|
+
traces[6]['Label'].must_equal 'info'
|
167
|
+
traces[6]['IsService'].must_equal 1
|
168
|
+
traces[6]['RemoteProtocol'].must_equal 'HTTP'
|
169
|
+
traces[6]['RemoteHost'].must_equal '127.0.0.1:8101'
|
170
|
+
traces[6]['ServiceArg'].must_equal '/?a=1'
|
171
|
+
traces[6]['HTTPMethod'].must_equal 'GET'
|
172
|
+
traces[6]['HTTPStatus'].must_equal "200"
|
173
|
+
traces[6].key?('Backtrace').must_equal Oboe::Config[:nethttp][:collect_backtraces]
|
180
174
|
|
181
|
-
traces[
|
182
|
-
traces[
|
175
|
+
traces[7]['Layer'].must_equal 'net-http'
|
176
|
+
traces[7]['Label'].must_equal 'exit'
|
183
177
|
|
184
|
-
traces[
|
185
|
-
traces[
|
178
|
+
traces[8]['Layer'].must_equal 'rest-client'
|
179
|
+
traces[8]['Label'].must_equal 'exit'
|
186
180
|
end
|
187
181
|
|
188
182
|
it 'should trace requests with redirects' do
|
@@ -281,7 +275,7 @@ if RUBY_VERSION >= '1.9.3'
|
|
281
275
|
Oboe::Config[:rest_client][:collect_backtraces] = true
|
282
276
|
|
283
277
|
Oboe::API.start_trace('rest_client_test') do
|
284
|
-
RestClient.get('http://
|
278
|
+
RestClient.get('http://127.0.0.1:8101/', {:a => 1})
|
285
279
|
end
|
286
280
|
|
287
281
|
traces = get_all_traces
|
@@ -292,7 +286,7 @@ if RUBY_VERSION >= '1.9.3'
|
|
292
286
|
Oboe::Config[:rest_client][:collect_backtraces] = false
|
293
287
|
|
294
288
|
Oboe::API.start_trace('rest_client_test') do
|
295
|
-
RestClient.get('http://
|
289
|
+
RestClient.get('http://127.0.0.1:8101/', {:a => 1})
|
296
290
|
end
|
297
291
|
|
298
292
|
traces = get_all_traces
|
@@ -8,10 +8,12 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
8
8
|
before do
|
9
9
|
clear_all_traces
|
10
10
|
@collect_backtraces = Oboe::Config[:typhoeus][:collect_backtraces]
|
11
|
+
@log_args = Oboe::Config[:typhoeus][:log_args]
|
11
12
|
end
|
12
13
|
|
13
14
|
after do
|
14
15
|
Oboe::Config[:typhoeus][:collect_backtraces] = @collect_backtraces
|
16
|
+
Oboe::Config[:typhoeus][:log_args] = @log_args
|
15
17
|
end
|
16
18
|
|
17
19
|
it 'Typhoeus should be defined and ready' do
|
@@ -41,9 +43,7 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
41
43
|
traces[5]['Layer'].must_equal 'typhoeus'
|
42
44
|
traces[5]['Label'].must_equal 'info'
|
43
45
|
traces[5]['IsService'].must_equal 1
|
44
|
-
traces[5]['
|
45
|
-
traces[5]['RemoteHost'].must_equal '127.0.0.1'
|
46
|
-
traces[5]['ServiceArg'].must_equal '/'
|
46
|
+
traces[5]['RemoteURL'].must_equal 'http://127.0.0.1:8101/'
|
47
47
|
traces[5]['HTTPMethod'].must_equal 'GET'
|
48
48
|
traces[5]['HTTPStatus'].must_equal 200
|
49
49
|
|
@@ -69,10 +69,7 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
69
69
|
traces[5]['Layer'].must_equal 'typhoeus'
|
70
70
|
traces[5]['Label'].must_equal 'info'
|
71
71
|
traces[5]['IsService'].must_equal 1
|
72
|
-
traces[5]['
|
73
|
-
traces[5]['RemoteHost'].must_equal '127.0.0.1'
|
74
|
-
traces[5]['RemotePort'].must_equal 8101
|
75
|
-
traces[5]['ServiceArg'].must_equal '/'
|
72
|
+
traces[5]['RemoteURL'].casecmp('http://127.0.0.1:8101/').must_equal 0
|
76
73
|
traces[5]['HTTPMethod'].must_equal 'POST'
|
77
74
|
traces[5]['HTTPStatus'].must_equal 200
|
78
75
|
|
@@ -98,10 +95,7 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
98
95
|
traces[5]['Layer'].must_equal 'typhoeus'
|
99
96
|
traces[5]['Label'].must_equal 'info'
|
100
97
|
traces[5]['IsService'].must_equal 1
|
101
|
-
traces[5]['
|
102
|
-
traces[5]['RemoteHost'].must_equal '127.0.0.1'
|
103
|
-
traces[5]['RemotePort'].must_equal 8101
|
104
|
-
traces[5]['ServiceArg'].must_equal '/'
|
98
|
+
traces[5]['RemoteURL'].must_equal 'http://127.0.0.1:8101/'
|
105
99
|
traces[5]['HTTPMethod'].must_equal 'PUT'
|
106
100
|
traces[5]['HTTPStatus'].must_equal 200
|
107
101
|
|
@@ -126,10 +120,7 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
126
120
|
traces[5]['Layer'].must_equal 'typhoeus'
|
127
121
|
traces[5]['Label'].must_equal 'info'
|
128
122
|
traces[5]['IsService'].must_equal 1
|
129
|
-
traces[5]['
|
130
|
-
traces[5]['RemoteHost'].must_equal '127.0.0.1'
|
131
|
-
traces[5]['RemotePort'].must_equal 8101
|
132
|
-
traces[5]['ServiceArg'].must_equal '/'
|
123
|
+
traces[5]['RemoteURL'].must_equal 'http://127.0.0.1:8101/'
|
133
124
|
traces[5]['HTTPMethod'].must_equal 'DELETE'
|
134
125
|
traces[5]['HTTPStatus'].must_equal 200
|
135
126
|
|
@@ -154,9 +145,7 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
154
145
|
traces[5]['Layer'].must_equal 'typhoeus'
|
155
146
|
traces[5]['Label'].must_equal 'info'
|
156
147
|
traces[5]['IsService'].must_equal 1
|
157
|
-
traces[5]['
|
158
|
-
traces[5]['RemoteHost'].must_equal '127.0.0.1'
|
159
|
-
traces[5]['ServiceArg'].must_equal '/'
|
148
|
+
traces[5]['RemoteURL'].must_equal 'http://127.0.0.1:8101/'
|
160
149
|
traces[5]['HTTPMethod'].must_equal 'HEAD'
|
161
150
|
traces[5]['HTTPStatus'].must_equal 200
|
162
151
|
|
@@ -181,9 +170,7 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
181
170
|
traces[5]['Layer'].must_equal 'typhoeus'
|
182
171
|
traces[5]['Label'].must_equal 'info'
|
183
172
|
traces[5]['IsService'].must_equal 1
|
184
|
-
traces[5]['
|
185
|
-
traces[5]['RemoteHost'].must_equal '127.0.0.1'
|
186
|
-
traces[5]['ServiceArg'].must_equal '/'
|
173
|
+
traces[5]['RemoteURL'].casecmp('http://127.0.0.1:8101/').must_equal 0
|
187
174
|
traces[5]['HTTPMethod'].must_equal 'GET'
|
188
175
|
traces[5]['HTTPStatus'].must_equal 200
|
189
176
|
|
@@ -211,9 +198,7 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
211
198
|
traces[3]['Layer'].must_equal 'typhoeus'
|
212
199
|
traces[3]['Label'].must_equal 'info'
|
213
200
|
traces[3]['IsService'].must_equal 1
|
214
|
-
traces[3]['
|
215
|
-
traces[3]['RemoteHost'].must_equal 'thisdomaindoesntexisthopefully.asdf'
|
216
|
-
traces[3]['ServiceArg'].must_equal '/products/traceview/'
|
201
|
+
traces[3]['RemoteURL'].casecmp('http://thisdomaindoesntexisthopefully.asdf/products/traceview/').must_equal 0
|
217
202
|
traces[3]['HTTPMethod'].must_equal 'GET'
|
218
203
|
traces[3]['HTTPStatus'].must_equal 0
|
219
204
|
|
@@ -254,11 +239,33 @@ describe Oboe::Inst::TyphoeusRequestOps do
|
|
254
239
|
traces[11]['Label'].must_equal 'exit'
|
255
240
|
end
|
256
241
|
|
242
|
+
it 'should obey :log_args setting when true' do
|
243
|
+
Oboe::Config[:typhoeus][:log_args] = true
|
244
|
+
|
245
|
+
Oboe::API.start_trace('typhoeus_test') do
|
246
|
+
Typhoeus.get("127.0.0.1:8101/?blah=1")
|
247
|
+
end
|
248
|
+
|
249
|
+
traces = get_all_traces
|
250
|
+
traces[5]['RemoteURL'].casecmp('http://127.0.0.1:8101/?blah=1').must_equal 0
|
251
|
+
end
|
252
|
+
|
253
|
+
it 'should obey :log_args setting when false' do
|
254
|
+
Oboe::Config[:typhoeus][:log_args] = false
|
255
|
+
|
256
|
+
Oboe::API.start_trace('typhoeus_test') do
|
257
|
+
Typhoeus.get("127.0.0.1:8101/?blah=1")
|
258
|
+
end
|
259
|
+
|
260
|
+
traces = get_all_traces
|
261
|
+
traces[5]['RemoteURL'].casecmp('http://127.0.0.1:8101/').must_equal 0
|
262
|
+
end
|
263
|
+
|
257
264
|
it 'should obey :collect_backtraces setting when true' do
|
258
265
|
Oboe::Config[:typhoeus][:collect_backtraces] = true
|
259
266
|
|
260
267
|
Oboe::API.start_trace('typhoeus_test') do
|
261
|
-
Typhoeus.get("127.0.0.1:8101
|
268
|
+
Typhoeus.get("127.0.0.1:8101/?blah=1")
|
262
269
|
end
|
263
270
|
|
264
271
|
traces = get_all_traces
|
data/test/minitest_helper.rb
CHANGED
data/test/support/config_test.rb
CHANGED
@@ -20,10 +20,10 @@ describe Oboe::Config do
|
|
20
20
|
# Reset Oboe::Config to defaults
|
21
21
|
Oboe::Config.initialize
|
22
22
|
|
23
|
-
instrumentation = Oboe::Config.
|
23
|
+
instrumentation = Oboe::Config.instrumentation
|
24
24
|
|
25
25
|
# Verify the number of individual instrumentations
|
26
|
-
instrumentation.count.must_equal
|
26
|
+
instrumentation.count.must_equal 21
|
27
27
|
|
28
28
|
Oboe::Config[:action_controller][:enabled].must_equal true
|
29
29
|
Oboe::Config[:action_view][:enabled].must_equal true
|
@@ -31,8 +31,10 @@ describe Oboe::Config do
|
|
31
31
|
Oboe::Config[:cassandra][:enabled].must_equal true
|
32
32
|
Oboe::Config[:dalli][:enabled].must_equal true
|
33
33
|
Oboe::Config[:em_http_request][:enabled].must_equal false
|
34
|
+
Oboe::Config[:excon][:enabled].must_equal true
|
34
35
|
Oboe::Config[:faraday][:enabled].must_equal true
|
35
36
|
Oboe::Config[:grape][:enabled].must_equal true
|
37
|
+
Oboe::Config[:httpclient][:enabled].must_equal true
|
36
38
|
Oboe::Config[:nethttp][:enabled].must_equal true
|
37
39
|
Oboe::Config[:memcached][:enabled].must_equal true
|
38
40
|
Oboe::Config[:memcache][:enabled].must_equal true
|
@@ -51,8 +53,10 @@ describe Oboe::Config do
|
|
51
53
|
Oboe::Config[:cassandra][:log_args].must_equal true
|
52
54
|
Oboe::Config[:dalli][:log_args].must_equal true
|
53
55
|
Oboe::Config[:em_http_request][:log_args].must_equal true
|
56
|
+
Oboe::Config[:excon][:log_args].must_equal true
|
54
57
|
Oboe::Config[:faraday][:log_args].must_equal true
|
55
58
|
Oboe::Config[:grape][:log_args].must_equal true
|
59
|
+
Oboe::Config[:httpclient][:log_args].must_equal true
|
56
60
|
Oboe::Config[:nethttp][:log_args].must_equal true
|
57
61
|
Oboe::Config[:memcached][:log_args].must_equal true
|
58
62
|
Oboe::Config[:memcache][:log_args].must_equal true
|
@@ -71,4 +75,50 @@ describe Oboe::Config do
|
|
71
75
|
Oboe::Config[:dnt_regexp].must_equal "\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|ttf|woff|svg|less)$"
|
72
76
|
Oboe::Config[:dnt_opts].must_equal Regexp::IGNORECASE
|
73
77
|
end
|
78
|
+
|
79
|
+
def test_should_obey_globals
|
80
|
+
# Reset Oboe::Config to defaults
|
81
|
+
Oboe::Config.initialize
|
82
|
+
|
83
|
+
http_clients = Oboe::Config.http_clients
|
84
|
+
|
85
|
+
# Restore these at the end
|
86
|
+
@url_query_params = Oboe::Config[:include_url_query_params]
|
87
|
+
@remote_url_params = Oboe::Config[:include_remote_url_params]
|
88
|
+
|
89
|
+
# After setting global options, the per instrumentation
|
90
|
+
# equivalents should follow suit.
|
91
|
+
|
92
|
+
#
|
93
|
+
# :include_url_query_params
|
94
|
+
#
|
95
|
+
|
96
|
+
# Check defaults
|
97
|
+
Oboe::Config[:include_url_query_params].must_equal true
|
98
|
+
http_clients.each do |i|
|
99
|
+
Oboe::Config[i][:log_args].must_equal true
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check obedience
|
103
|
+
Oboe::Config[:include_url_query_params] = false
|
104
|
+
http_clients.each do |i|
|
105
|
+
Oboe::Config[i][:log_args].must_equal false
|
106
|
+
end
|
107
|
+
|
108
|
+
#
|
109
|
+
# :include_remote_url_params
|
110
|
+
#
|
111
|
+
|
112
|
+
# Check default
|
113
|
+
Oboe::Config[:include_remote_url_params].must_equal true
|
114
|
+
Oboe::Config[:rack][:log_args].must_equal true
|
115
|
+
|
116
|
+
# Check obedience
|
117
|
+
Oboe::Config[:include_remote_url_params] = false
|
118
|
+
Oboe::Config[:rack][:log_args].must_equal false
|
119
|
+
|
120
|
+
# Restore the previous values
|
121
|
+
Oboe::Config[:include_url_query_params] = @url_query_params
|
122
|
+
Oboe::Config[:include_remote_url_params] = @remote_url_params
|
123
|
+
end
|
74
124
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oboe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.17.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/oboe/inst/excon.rb
|
105
105
|
- lib/oboe/inst/faraday.rb
|
106
106
|
- lib/oboe/inst/http.rb
|
107
|
+
- lib/oboe/inst/httpclient.rb
|
107
108
|
- lib/oboe/inst/memcache.rb
|
108
109
|
- lib/oboe/inst/memcached.rb
|
109
110
|
- lib/oboe/inst/mongo.rb
|
@@ -142,6 +143,7 @@ files:
|
|
142
143
|
- test/instrumentation/excon_test.rb
|
143
144
|
- test/instrumentation/faraday_test.rb
|
144
145
|
- test/instrumentation/http_test.rb
|
146
|
+
- test/instrumentation/httpclient_test.rb
|
145
147
|
- test/instrumentation/memcache_test.rb
|
146
148
|
- test/instrumentation/memcached_test.rb
|
147
149
|
- test/instrumentation/mongo_test.rb
|
@@ -187,46 +189,47 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
189
|
version: '0'
|
188
190
|
requirements: []
|
189
191
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.
|
192
|
+
rubygems_version: 2.4.5
|
191
193
|
signing_key:
|
192
194
|
specification_version: 4
|
193
195
|
summary: AppNeta TraceView performance instrumentation gem for Ruby
|
194
196
|
test_files:
|
195
197
|
- test/minitest_helper.rb
|
196
198
|
- test/servers/rackapp_8101.rb
|
197
|
-
- test/
|
198
|
-
- test/frameworks/padrino_test.rb
|
199
|
-
- test/frameworks/sinatra_test.rb
|
200
|
-
- test/frameworks/apps/sinatra_simple.rb
|
201
|
-
- test/frameworks/apps/padrino_simple.rb
|
202
|
-
- test/frameworks/apps/grape_simple.rb
|
203
|
-
- test/frameworks/apps/grape_nested.rb
|
204
|
-
- test/instrumentation/mongo_test.rb
|
205
|
-
- test/instrumentation/redis_hashes_test.rb
|
199
|
+
- test/instrumentation/excon_test.rb
|
206
200
|
- test/instrumentation/sequel_pg_test.rb
|
207
|
-
- test/instrumentation/
|
201
|
+
- test/instrumentation/moped_test.rb
|
202
|
+
- test/instrumentation/httpclient_test.rb
|
203
|
+
- test/instrumentation/sequel_mysql_test.rb
|
204
|
+
- test/instrumentation/http_test.rb
|
208
205
|
- test/instrumentation/dalli_test.rb
|
209
|
-
- test/instrumentation/excon_test.rb
|
210
|
-
- test/instrumentation/redis_keys_test.rb
|
211
206
|
- test/instrumentation/redis_sortedsets_test.rb
|
207
|
+
- test/instrumentation/rack_test.rb
|
208
|
+
- test/instrumentation/cassandra_test.rb
|
212
209
|
- test/instrumentation/redis_strings_test.rb
|
213
|
-
- test/instrumentation/sequel_mysql_test.rb
|
214
|
-
- test/instrumentation/redis_sets_test.rb
|
215
|
-
- test/instrumentation/http_test.rb
|
216
210
|
- test/instrumentation/typhoeus_test.rb
|
217
|
-
- test/instrumentation/
|
218
|
-
- test/instrumentation/
|
219
|
-
- test/instrumentation/moped_test.rb
|
220
|
-
- test/instrumentation/rack_test.rb
|
221
|
-
- test/instrumentation/memcache_test.rb
|
211
|
+
- test/instrumentation/sequel_mysql2_test.rb
|
212
|
+
- test/instrumentation/redis_misc_test.rb
|
222
213
|
- test/instrumentation/faraday_test.rb
|
214
|
+
- test/instrumentation/redis_keys_test.rb
|
215
|
+
- test/instrumentation/redis_sets_test.rb
|
216
|
+
- test/instrumentation/memcache_test.rb
|
217
|
+
- test/instrumentation/resque_test.rb
|
218
|
+
- test/instrumentation/redis_hashes_test.rb
|
219
|
+
- test/instrumentation/mongo_test.rb
|
223
220
|
- test/instrumentation/redis_lists_test.rb
|
224
|
-
- test/instrumentation/sequel_mysql2_test.rb
|
225
|
-
- test/instrumentation/cassandra_test.rb
|
226
221
|
- test/instrumentation/memcached_test.rb
|
222
|
+
- test/instrumentation/em_http_request_test.rb
|
227
223
|
- test/instrumentation/rest-client_test.rb
|
228
224
|
- test/profiling/method_test.rb
|
229
|
-
- test/
|
225
|
+
- test/frameworks/sinatra_test.rb
|
226
|
+
- test/frameworks/grape_test.rb
|
227
|
+
- test/frameworks/padrino_test.rb
|
228
|
+
- test/frameworks/apps/grape_simple.rb
|
229
|
+
- test/frameworks/apps/sinatra_simple.rb
|
230
|
+
- test/frameworks/apps/padrino_simple.rb
|
231
|
+
- test/frameworks/apps/grape_nested.rb
|
230
232
|
- test/support/config_test.rb
|
231
|
-
- test/support/xtrace_test.rb
|
232
233
|
- test/support/dnt_test.rb
|
234
|
+
- test/support/liboboe_settings_test.rb
|
235
|
+
- test/support/xtrace_test.rb
|