oboe 2.3.4.1 → 2.4.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,10 +23,10 @@ describe Oboe::Inst do
23
23
 
24
24
  it "should trace a Net::HTTP request to an instr'd app" do
25
25
  Oboe::API.start_trace('net-http_test', '', {}) do
26
- uri = URI('https://www.appneta.com')
26
+ uri = URI('http://www.appneta.com')
27
27
  http = Net::HTTP.new(uri.host, uri.port)
28
- http.use_ssl = true
29
- http.get('/?q=test').read_body
28
+ http.use_ssl = false
29
+ http.get('/?q=ruby_test_suite').read_body
30
30
  end
31
31
 
32
32
  traces = get_all_traces
@@ -36,9 +36,9 @@ describe Oboe::Inst do
36
36
 
37
37
  traces[1]['Layer'].must_equal 'net-http'
38
38
  traces[2]['IsService'].must_equal "1"
39
- traces[2]['RemoteProtocol'].must_equal "HTTPS"
39
+ traces[2]['RemoteProtocol'].must_equal "HTTP"
40
40
  traces[2]['RemoteHost'].must_equal "www.appneta.com"
41
- traces[2]['ServiceArg'].must_equal "/?q=test"
41
+ traces[2]['ServiceArg'].must_equal "/?q=ruby_test_suite"
42
42
  traces[2]['HTTPMethod'].must_equal "GET"
43
43
  traces[2]['HTTPStatus'].must_equal "200"
44
44
  traces[2].has_key?('Backtrace').must_equal Oboe::Config[:nethttp][:collect_backtraces]
@@ -49,7 +49,7 @@ describe Oboe::Inst do
49
49
  uri = URI('https://www.google.com')
50
50
  http = Net::HTTP.new(uri.host, uri.port)
51
51
  http.use_ssl = true
52
- http.get('/?q=test').read_body
52
+ http.get('/?q=ruby_test_suite').read_body
53
53
  end
54
54
 
55
55
  traces = get_all_traces
@@ -61,7 +61,7 @@ describe Oboe::Inst do
61
61
  traces[2]['IsService'].must_equal "1"
62
62
  traces[2]['RemoteProtocol'].must_equal "HTTPS"
63
63
  traces[2]['RemoteHost'].must_equal "www.google.com"
64
- traces[2]['ServiceArg'].must_equal "/?q=test"
64
+ traces[2]['ServiceArg'].must_equal "/?q=ruby_test_suite"
65
65
  traces[2]['HTTPMethod'].must_equal "GET"
66
66
  traces[2]['HTTPStatus'].must_equal "200"
67
67
  traces[2].has_key?('Backtrace').must_equal Oboe::Config[:nethttp][:collect_backtraces]
@@ -71,10 +71,10 @@ describe Oboe::Inst do
71
71
  Oboe::Config[:nethttp][:collect_backtraces] = true
72
72
 
73
73
  Oboe::API.start_trace('nethttp_test', '', {}) do
74
- uri = URI('https://www.appneta.com')
74
+ uri = URI('http://www.appneta.com')
75
75
  http = Net::HTTP.new(uri.host, uri.port)
76
- http.use_ssl = true
77
- http.get('/?q=test').read_body
76
+ http.use_ssl = false
77
+ http.get('/?q=ruby_test_suite').read_body
78
78
  end
79
79
 
80
80
  traces = get_all_traces
@@ -85,10 +85,10 @@ describe Oboe::Inst do
85
85
  Oboe::Config[:nethttp][:collect_backtraces] = false
86
86
 
87
87
  Oboe::API.start_trace('nethttp_test', '', {}) do
88
- uri = URI('https://www.appneta.com')
88
+ uri = URI('http://www.appneta.com')
89
89
  http = Net::HTTP.new(uri.host, uri.port)
90
- http.use_ssl = true
91
- http.get('/?q=test').read_body
90
+ http.use_ssl = false
91
+ http.get('/?q=ruby_test_suite').read_body
92
92
  end
93
93
 
94
94
  traces = get_all_traces
@@ -12,8 +12,6 @@ describe Oboe::Config do
12
12
  Oboe::Config.initialize
13
13
 
14
14
  Oboe::Config[:verbose].must_equal false
15
- Oboe::Config[:sample_source].must_equal 2
16
- Oboe::Config[:sample_rate].must_equal 300000
17
15
  Oboe::Config[:tracing_mode].must_equal "through"
18
16
  Oboe::Config[:reporter_host].must_equal "127.0.0.1"
19
17
  end
@@ -0,0 +1,41 @@
1
+ require 'minitest_helper'
2
+ require 'rack/test'
3
+ require 'rack/lobster'
4
+ require 'oboe/inst/rack'
5
+
6
+ Oboe::Config[:tracing_mode] = 'always'
7
+ Oboe::Config[:sample_rate] = 1e6
8
+
9
+ class RackTestApp < MiniTest::Unit::TestCase
10
+ include Rack::Test::Methods
11
+
12
+ def app
13
+ @app = Rack::Builder.new {
14
+ use Rack::CommonLogger
15
+ use Rack::ShowExceptions
16
+ use Oboe::Rack
17
+ map "/lobster" do
18
+ use Rack::Lint
19
+ run Rack::Lobster.new
20
+ end
21
+ }
22
+ end
23
+
24
+ def test_localset_sample_source
25
+ clear_all_traces
26
+
27
+ get "/lobster"
28
+
29
+ traces = get_all_traces
30
+ traces.count.must_equal 3
31
+
32
+ validate_outer_layers(traces, 'rack')
33
+
34
+ kvs = {}
35
+ kvs["SampleRate"] = "1000000"
36
+ kvs["SampleSource"] = OBOE_SAMPLE_RATE_SOURCE_FILE.to_s
37
+ validate_event_keys(traces[1], kvs)
38
+
39
+ end
40
+ end
41
+
metadata CHANGED
@@ -1,75 +1,52 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: oboe
3
- version: !ruby/object:Gem::Version
4
- hash: 101
5
- prerelease:
6
- segments:
7
- - 2
8
- - 3
9
- - 4
10
- - 1
11
- version: 2.3.4.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.4.0.1
12
5
  platform: ruby
13
- authors:
6
+ authors:
14
7
  - Peter Giacomo Lombardo
15
8
  - Spiros Eliopoulos
16
9
  autorequire:
17
10
  bindir: bin
18
11
  cert_chain: []
19
-
20
- date: 2013-11-22 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
12
+ date: 2014-01-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
23
15
  name: rake
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
34
21
  type: :development
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: minitest
38
22
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
48
- type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: bson
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: json
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
52
36
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
62
- type: :development
63
- version_requirements: *id003
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
64
42
  description: The oboe gem provides TraceView instrumentation for Ruby and Ruby frameworks.
65
43
  email: traceviewsupport@appneta.com
66
44
  executables: []
67
-
68
- extensions:
45
+ extensions:
69
46
  - ext/oboe_metal/extconf.rb
70
- extra_rdoc_files:
47
+ extra_rdoc_files:
71
48
  - LICENSE
72
- files:
49
+ files:
73
50
  - .gitignore
74
51
  - .travis.yml
75
52
  - Appraisals
@@ -138,12 +115,10 @@ files:
138
115
  - lib/oboe/util.rb
139
116
  - lib/oboe/version.rb
140
117
  - lib/oboe/xtrace.rb
141
- - lib/oboe_fu.rb
142
118
  - lib/oboe_metal.rb
143
119
  - lib/rails/generators/oboe/install_generator.rb
144
120
  - lib/rails/generators/oboe/templates/oboe_initializer.rb
145
121
  - oboe.gemspec
146
- - oboe_fu.gemspec
147
122
  - release.sh
148
123
  - test/instrumentation/cassandra_test.rb
149
124
  - test/instrumentation/dalli_test.rb
@@ -157,51 +132,44 @@ files:
157
132
  - test/minitest_helper.rb
158
133
  - test/profiling/method_test.rb
159
134
  - test/support/config_test.rb
135
+ - test/support/srv1_localset_test.rb
160
136
  - test/support/xtrace_test.rb
161
- homepage: http://www.appneta.com/application-performance-management
162
- licenses: []
163
-
137
+ homepage: http://www.appneta.com/products/traceview/
138
+ licenses:
139
+ - AppNeta Open License, Version 1.0
140
+ metadata: {}
164
141
  post_install_message:
165
142
  rdoc_options: []
166
-
167
- require_paths:
143
+ require_paths:
168
144
  - lib
169
- required_ruby_version: !ruby/object:Gem::Requirement
170
- none: false
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- hash: 3
175
- segments:
176
- - 0
177
- version: "0"
178
- required_rubygems_version: !ruby/object:Gem::Requirement
179
- none: false
180
- requirements:
181
- - - ">="
182
- - !ruby/object:Gem::Version
183
- hash: 3
184
- segments:
185
- - 0
186
- version: "0"
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
187
155
  requirements: []
188
-
189
156
  rubyforge_project:
190
- rubygems_version: 1.8.15
157
+ rubygems_version: 2.1.11
191
158
  signing_key:
192
- specification_version: 3
159
+ specification_version: 4
193
160
  summary: AppNeta TraceView performance instrumentation gem for Ruby
194
- test_files:
161
+ test_files:
195
162
  - test/minitest_helper.rb
196
- - test/support/config_test.rb
197
- - test/support/xtrace_test.rb
198
- - test/profiling/method_test.rb
199
- - test/instrumentation/memcached_test.rb
200
- - test/instrumentation/memcache_test.rb
163
+ - test/instrumentation/mongo_test.rb
201
164
  - test/instrumentation/dalli_test.rb
202
165
  - test/instrumentation/http_test.rb
203
- - test/instrumentation/cassandra_test.rb
204
166
  - test/instrumentation/resque_test.rb
205
- - test/instrumentation/rack_test.rb
206
167
  - test/instrumentation/moped_test.rb
207
- - test/instrumentation/mongo_test.rb
168
+ - test/instrumentation/rack_test.rb
169
+ - test/instrumentation/memcache_test.rb
170
+ - test/instrumentation/cassandra_test.rb
171
+ - test/instrumentation/memcached_test.rb
172
+ - test/profiling/method_test.rb
173
+ - test/support/srv1_localset_test.rb
174
+ - test/support/config_test.rb
175
+ - test/support/xtrace_test.rb
@@ -1,6 +0,0 @@
1
- # Copyright (c) 2013 AppNeta, Inc.
2
- # All rights reserved.
3
-
4
- puts "[oboe_fu] This gem has been deprecated. Please use the 'oboe' gem instead."
5
- require 'oboe'
6
-
@@ -1,13 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = %q{oboe_fu}
3
- s.version = "1.3.0"
4
- s.date = %{2012-09-19}
5
- s.authors = ["Tracelytics, Inc."]
6
- s.email = %q{contact@tracelytics.com}
7
- s.summary = %q{(Deprecated) Oboe instrumentation for Ruby frameworks}
8
- s.homepage = %q{http://tracelytics.com}
9
- s.description = %q{This gem has been replace by the 'oboe' gem. Please update.}
10
- s.extra_rdoc_files = ["LICENSE"]
11
- s.files = ['lib/oboe_fu.rb'] + ['LICENSE']
12
- s.add_dependency('oboe', '= 1.3.0')
13
- end