oboe 2.6.5.5 → 2.6.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +6 -5
- data/Gemfile.lock +40 -14
- data/README.md +38 -6
- data/Rakefile +4 -4
- data/lib/joboe_metal.rb +1 -1
- data/lib/oboe.rb +4 -3
- data/lib/oboe/frameworks/grape.rb +74 -0
- data/lib/oboe/frameworks/padrino/templates.rb +3 -1
- data/lib/oboe/inst/mongo.rb +23 -23
- data/lib/oboe/instrumentation.rb +1 -1
- data/lib/oboe/util.rb +54 -12
- data/lib/oboe/version.rb +3 -3
- data/lib/oboe_metal.rb +1 -1
- data/lib/rails/generators/oboe/install_generator.rb +3 -3
- data/lib/rails/generators/oboe/templates/oboe_initializer.rb +10 -10
- data/test/frameworks/apps/grape_simple.rb +12 -0
- data/test/frameworks/grape_test.rb +27 -0
- data/test/instrumentation/dalli_test.rb +36 -29
- data/test/instrumentation/memcache_test.rb +52 -52
- data/test/instrumentation/memcached_test.rb +49 -41
- data/test/instrumentation/mongo_test.rb +91 -45
- data/test/instrumentation/rack_test.rb +7 -6
- metadata +29 -24
@@ -19,7 +19,7 @@ class RackTestApp < Minitest::Test
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def test_get_the_lobster
|
22
|
-
clear_all_traces
|
22
|
+
clear_all_traces
|
23
23
|
|
24
24
|
get "/lobster"
|
25
25
|
|
@@ -28,10 +28,8 @@ class RackTestApp < Minitest::Test
|
|
28
28
|
|
29
29
|
validate_outer_layers(traces, 'rack')
|
30
30
|
|
31
|
-
kvs = {}
|
31
|
+
kvs = {}
|
32
32
|
kvs["Label"] = "entry"
|
33
|
-
kvs["SampleRate"] = "1000000"
|
34
|
-
kvs["SampleSource"] = "1"
|
35
33
|
validate_event_keys(traces[0], kvs)
|
36
34
|
|
37
35
|
kvs.clear
|
@@ -45,12 +43,15 @@ class RackTestApp < Minitest::Test
|
|
45
43
|
kvs["ClientIP"] = "127.0.0.1"
|
46
44
|
validate_event_keys(traces[1], kvs)
|
47
45
|
|
46
|
+
assert traces[0].has_key?('SampleRate')
|
47
|
+
assert traces[0].has_key?('SampleSource')
|
48
|
+
|
48
49
|
assert last_response.ok?
|
49
50
|
assert last_response['X-Trace']
|
50
51
|
end
|
51
|
-
|
52
|
+
|
52
53
|
def test_dont_trace_static_assets
|
53
|
-
clear_all_traces
|
54
|
+
clear_all_traces
|
54
55
|
|
55
56
|
get "/assets/static_asset.png"
|
56
57
|
|
metadata
CHANGED
@@ -1,44 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oboe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
8
8
|
- Spiros Eliopoulos
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
16
|
-
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
24
22
|
requirements:
|
25
|
-
- -
|
23
|
+
- - '>='
|
26
24
|
- !ruby/object:Gem::Version
|
27
25
|
version: '0'
|
26
|
+
prerelease: false
|
27
|
+
type: :runtime
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
|
-
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
|
-
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
38
36
|
requirements:
|
39
|
-
- -
|
37
|
+
- - '>='
|
40
38
|
- !ruby/object:Gem::Version
|
41
39
|
version: '0'
|
40
|
+
prerelease: false
|
41
|
+
type: :development
|
42
42
|
description: The oboe gem provides TraceView instrumentation for Ruby and Ruby frameworks.
|
43
43
|
email: traceviewsupport@appneta.com
|
44
44
|
executables: []
|
@@ -47,8 +47,8 @@ extensions:
|
|
47
47
|
extra_rdoc_files:
|
48
48
|
- LICENSE
|
49
49
|
files:
|
50
|
-
-
|
51
|
-
-
|
50
|
+
- .gitignore
|
51
|
+
- .travis.yml
|
52
52
|
- Appraisals
|
53
53
|
- CHANGELOG.md
|
54
54
|
- Gemfile
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/oboe/api/tracing.rb
|
87
87
|
- lib/oboe/api/util.rb
|
88
88
|
- lib/oboe/config.rb
|
89
|
+
- lib/oboe/frameworks/grape.rb
|
89
90
|
- lib/oboe/frameworks/padrino.rb
|
90
91
|
- lib/oboe/frameworks/padrino/templates.rb
|
91
92
|
- lib/oboe/frameworks/rails.rb
|
@@ -126,8 +127,10 @@ files:
|
|
126
127
|
- lib/rails/generators/oboe/templates/oboe_initializer.rb
|
127
128
|
- oboe.gemspec
|
128
129
|
- release.sh
|
130
|
+
- test/frameworks/apps/grape_simple.rb
|
129
131
|
- test/frameworks/apps/padrino_simple.rb
|
130
132
|
- test/frameworks/apps/sinatra_simple.rb
|
133
|
+
- test/frameworks/grape_test.rb
|
131
134
|
- test/frameworks/padrino_test.rb
|
132
135
|
- test/frameworks/sinatra_test.rb
|
133
136
|
- test/instrumentation/cassandra_test.rb
|
@@ -155,32 +158,34 @@ homepage: http://www.appneta.com/products/traceview/
|
|
155
158
|
licenses:
|
156
159
|
- AppNeta Open License, Version 1.0
|
157
160
|
metadata: {}
|
158
|
-
post_install_message:
|
161
|
+
post_install_message:
|
159
162
|
rdoc_options: []
|
160
163
|
require_paths:
|
161
164
|
- lib
|
162
165
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
166
|
requirements:
|
164
|
-
- -
|
167
|
+
- - '>='
|
165
168
|
- !ruby/object:Gem::Version
|
166
169
|
version: 1.8.6
|
167
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
171
|
requirements:
|
169
|
-
- -
|
172
|
+
- - '>='
|
170
173
|
- !ruby/object:Gem::Version
|
171
174
|
version: '0'
|
172
175
|
requirements: []
|
173
|
-
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
175
|
-
signing_key:
|
176
|
+
rubyforge_project:
|
177
|
+
rubygems_version: 2.1.9
|
178
|
+
signing_key:
|
176
179
|
specification_version: 4
|
177
180
|
summary: AppNeta TraceView performance instrumentation gem for Ruby
|
178
181
|
test_files:
|
182
|
+
- test/minitest_helper.rb
|
183
|
+
- test/frameworks/grape_test.rb
|
179
184
|
- test/frameworks/padrino_test.rb
|
180
185
|
- test/frameworks/sinatra_test.rb
|
181
186
|
- test/frameworks/apps/sinatra_simple.rb
|
182
187
|
- test/frameworks/apps/padrino_simple.rb
|
183
|
-
- test/
|
188
|
+
- test/frameworks/apps/grape_simple.rb
|
184
189
|
- test/instrumentation/mongo_test.rb
|
185
190
|
- test/instrumentation/redis_hashes_test.rb
|
186
191
|
- test/instrumentation/redis_misc_test.rb
|