oboe 2.6.4.1 → 2.6.5.5
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/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +6 -3
- data/Gemfile.lock +27 -24
- data/lib/oboe/inst/mongo.rb +11 -3
- data/lib/oboe/inst/rack.rb +6 -6
- data/lib/oboe/version.rb +2 -2
- data/oboe.gemspec +3 -2
- data/test/frameworks/padrino_test.rb +1 -1
- data/test/instrumentation/memcached_test.rb +1 -1
- data/test/instrumentation/moped_test.rb +1 -1
- data/test/instrumentation/rack_test.rb +2 -2
- data/test/support/liboboe_settings_test.rb +1 -1
- metadata +16 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de480d62f58bc7fc1264f2200e2a6b9e2bd795dc
|
4
|
+
data.tar.gz: 674039622538fafb9f96b2c757d272e87502e261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 857f1e991c9ce93e6fafdc945869c9fb55444b088a07c43887b2570d16c14a7fde1a671f6960177ec0a82aab4b9bcce5297421146d457907c1cf2e27b003392f
|
7
|
+
data.tar.gz: 4e26b5b965178772d41e7304245d9ff8f62d6034e7afbebfee97bdf21f012cad8bbb4d367aa2710f93dde5ae0eab322cee9200d4a275afbbf1bd05f9ccdeb120
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# oboe 2.6.5.5 (06/02/14)
|
2
|
+
|
3
|
+
This patch release improves [instrumentation for Mongo](https://github.com/appneta/oboe-ruby/pull/48) version >= 1.10 and fixes TraceView [sample rate reporting](https://github.com/appneta/oboe-ruby/pull/50).
|
4
|
+
|
1
5
|
# oboe 2.6.4.1 (04/30/14)
|
2
6
|
|
3
7
|
This patch release adds detection and support for Redhat [OpenShift](https://www.openshift.com/). See our OpenShift [TraceView cartridge](https://github.com/appneta/openshift-cartridge-traceview) for base libraries before using this gem on OpenShift.
|
data/Gemfile
CHANGED
@@ -19,17 +19,20 @@ end
|
|
19
19
|
# Instrumented gems
|
20
20
|
gem 'dalli'
|
21
21
|
gem 'memcache-client'
|
22
|
-
gem 'memcached' if
|
22
|
+
gem 'memcached', '1.7.2' if RUBY_VERSION < '2.0.0'
|
23
23
|
gem 'cassandra'
|
24
24
|
gem 'mongo'
|
25
25
|
gem 'bson_ext' # For Mongo, Yours Truly
|
26
|
-
gem 'moped'
|
26
|
+
gem 'moped' if RUBY_VERSION >= '1.9'
|
27
27
|
gem 'resque'
|
28
28
|
gem 'redis'
|
29
29
|
|
30
30
|
# Instrumented Frameworks
|
31
31
|
gem 'sinatra'
|
32
|
-
|
32
|
+
|
33
|
+
if RUBY_VERSION >= '1.9.3'
|
34
|
+
gem 'padrino', '0.12.0'
|
35
|
+
end
|
33
36
|
|
34
37
|
# Import dependencies from oboe.gemspec
|
35
38
|
gemspec :name => 'oboe'
|
data/Gemfile.lock
CHANGED
@@ -1,27 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
oboe (2.6.
|
4
|
+
oboe (2.6.5.5)
|
5
5
|
json
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (
|
11
|
-
i18n (~> 0.6, >= 0.6.
|
12
|
-
|
10
|
+
activesupport (4.1.1)
|
11
|
+
i18n (~> 0.6, >= 0.6.9)
|
12
|
+
json (~> 1.7, >= 1.7.7)
|
13
|
+
minitest (~> 5.1)
|
14
|
+
thread_safe (~> 0.1)
|
15
|
+
tzinfo (~> 1.1)
|
13
16
|
ansi (1.4.3)
|
14
17
|
appraisal (1.0.0)
|
15
18
|
bundler
|
16
19
|
rake
|
17
20
|
thor (>= 0.14.0)
|
18
21
|
archive-tar-minitar (0.5.2)
|
19
|
-
bson (1.
|
20
|
-
bson_ext (1.
|
21
|
-
bson (~> 1.
|
22
|
+
bson (1.10.1)
|
23
|
+
bson_ext (1.10.1)
|
24
|
+
bson (~> 1.10.1)
|
22
25
|
builder (3.2.2)
|
23
|
-
byebug (
|
24
|
-
columnize (~> 0.
|
26
|
+
byebug (3.1.2)
|
27
|
+
columnize (~> 0.8)
|
25
28
|
debugger-linecache (~> 1.2)
|
26
29
|
cassandra (0.23.0)
|
27
30
|
json
|
@@ -29,10 +32,9 @@ GEM
|
|
29
32
|
simple_uuid (~> 0.3)
|
30
33
|
thrift_client (~> 0.7, < 0.9)
|
31
34
|
coderay (1.1.0)
|
32
|
-
columnize (0.
|
33
|
-
dalli (2.7.
|
35
|
+
columnize (0.8.9)
|
36
|
+
dalli (2.7.2)
|
34
37
|
debugger-linecache (1.2.0)
|
35
|
-
hashie (2.0.5)
|
36
38
|
http_router (0.11.1)
|
37
39
|
rack (>= 1.0.0)
|
38
40
|
url_mount (~> 0.2.1)
|
@@ -48,18 +50,18 @@ GEM
|
|
48
50
|
memcache-client (1.8.5)
|
49
51
|
method_source (0.8.2)
|
50
52
|
mime-types (1.25.1)
|
51
|
-
minitest (5.3.
|
52
|
-
minitest-reporters (1.0.
|
53
|
+
minitest (5.3.4)
|
54
|
+
minitest-reporters (1.0.4)
|
53
55
|
ansi
|
54
56
|
builder
|
55
57
|
minitest (>= 5.0)
|
56
|
-
|
58
|
+
ruby-progressbar
|
57
59
|
moneta (0.7.20)
|
58
|
-
mongo (1.
|
59
|
-
bson (~> 1.
|
60
|
+
mongo (1.10.1)
|
61
|
+
bson (~> 1.10.1)
|
60
62
|
mono_logger (1.1.0)
|
61
63
|
moped (1.5.2)
|
62
|
-
multi_json (1.
|
64
|
+
multi_json (1.10.1)
|
63
65
|
padrino (0.12.0)
|
64
66
|
padrino-admin (= 0.12.0)
|
65
67
|
padrino-cache (= 0.12.0)
|
@@ -92,19 +94,16 @@ GEM
|
|
92
94
|
padrino-core (= 0.12.0)
|
93
95
|
perftools.rb (2.0.1)
|
94
96
|
polyglot (0.3.4)
|
95
|
-
powerbar (1.0.11)
|
96
|
-
ansi (~> 1.4.0)
|
97
|
-
hashie (>= 1.1.0)
|
98
97
|
pry (0.9.12.6)
|
99
98
|
coderay (~> 1.0)
|
100
99
|
method_source (~> 0.8)
|
101
100
|
slop (~> 3.4)
|
102
101
|
rack (1.5.2)
|
103
|
-
rack-protection (1.5.
|
102
|
+
rack-protection (1.5.3)
|
104
103
|
rack
|
105
104
|
rack-test (0.6.2)
|
106
105
|
rack (>= 1.0)
|
107
|
-
rake (10.
|
106
|
+
rake (10.3.2)
|
108
107
|
rbx-require-relative (0.0.9)
|
109
108
|
redis (3.0.7)
|
110
109
|
redis-namespace (1.4.1)
|
@@ -128,15 +127,17 @@ GEM
|
|
128
127
|
columnize (>= 0.3.1)
|
129
128
|
linecache19 (>= 0.5.11)
|
130
129
|
ruby-debug-base19 (>= 0.11.19)
|
130
|
+
ruby-progressbar (1.5.1)
|
131
131
|
ruby_core_source (0.1.5)
|
132
132
|
archive-tar-minitar (>= 0.5.2)
|
133
133
|
simple_uuid (0.4.0)
|
134
|
-
sinatra (1.4.
|
134
|
+
sinatra (1.4.5)
|
135
135
|
rack (~> 1.4)
|
136
136
|
rack-protection (~> 1.4)
|
137
137
|
tilt (~> 1.3, >= 1.3.4)
|
138
138
|
slop (3.5.0)
|
139
139
|
thor (0.17.0)
|
140
|
+
thread_safe (0.3.4)
|
140
141
|
thrift (0.8.0)
|
141
142
|
thrift_client (0.8.4)
|
142
143
|
thrift (~> 0.8.0)
|
@@ -144,6 +145,8 @@ GEM
|
|
144
145
|
treetop (1.4.15)
|
145
146
|
polyglot
|
146
147
|
polyglot (>= 0.3.1)
|
148
|
+
tzinfo (1.2.0)
|
149
|
+
thread_safe (~> 0.1)
|
147
150
|
url_mount (0.2.1)
|
148
151
|
rack
|
149
152
|
vegas (0.1.11)
|
data/lib/oboe/inst/mongo.rb
CHANGED
@@ -39,9 +39,17 @@ if defined?(::Mongo) and Oboe::Config[:mongo][:enabled]
|
|
39
39
|
report_kvs[:Flavor] = Oboe::Inst::Mongo::FLAVOR
|
40
40
|
|
41
41
|
report_kvs[:Database] = @name
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
|
43
|
+
# Mongo >= 1.10 uses @client instead of @connection
|
44
|
+
# Avoid the nil
|
45
|
+
if @connection
|
46
|
+
report_kvs[:RemoteHost] = @connection.host
|
47
|
+
report_kvs[:RemotePort] = @connection.port
|
48
|
+
elsif @client
|
49
|
+
report_kvs[:RemoteHost] = @client.host
|
50
|
+
report_kvs[:RemotePort] = @client.port
|
51
|
+
end
|
52
|
+
|
45
53
|
report_kvs[:QueryOp] = m
|
46
54
|
|
47
55
|
report_kvs[:New_Collection_Name] = args[0] if m == :create_collection
|
data/lib/oboe/inst/rack.rb
CHANGED
@@ -15,12 +15,6 @@ module Oboe
|
|
15
15
|
report_kvs = {}
|
16
16
|
|
17
17
|
begin
|
18
|
-
if Oboe.always?
|
19
|
-
# Only report these KVs under tracing_mode 'always' (never for 'through')
|
20
|
-
report_kvs[:SampleRate] = Oboe.sample_rate
|
21
|
-
report_kvs[:SampleSource] = Oboe.sample_source
|
22
|
-
end
|
23
|
-
|
24
18
|
report_kvs['HTTP-Host'] = req.host
|
25
19
|
report_kvs['Port'] = req.port
|
26
20
|
report_kvs['Proto'] = req.scheme
|
@@ -55,6 +49,12 @@ module Oboe
|
|
55
49
|
|
56
50
|
report_kvs = {}
|
57
51
|
report_kvs[:URL] = URI.unescape(req.path)
|
52
|
+
|
53
|
+
if Oboe.always?
|
54
|
+
# Only report these KVs under tracing_mode 'always' (never for 'through')
|
55
|
+
report_kvs[:SampleRate] = Oboe.sample_rate
|
56
|
+
report_kvs[:SampleSource] = Oboe.sample_source
|
57
|
+
end
|
58
58
|
|
59
59
|
xtrace = env.is_a?(Hash) ? env['HTTP_X_TRACE'] : nil
|
60
60
|
|
data/lib/oboe/version.rb
CHANGED
data/oboe.gemspec
CHANGED
@@ -19,9 +19,10 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.test_files = Dir.glob("{test}/**/*.rb")
|
20
20
|
|
21
21
|
s.extensions = ['ext/oboe_metal/extconf.rb']
|
22
|
-
|
23
|
-
s.add_development_dependency 'rake'
|
24
22
|
|
25
23
|
s.add_runtime_dependency('json', '>= 0')
|
24
|
+
s.add_development_dependency('rake', '>= 0')
|
25
|
+
|
26
|
+
s.required_ruby_version = '>= 1.8.6'
|
26
27
|
end
|
27
28
|
|
@@ -30,13 +30,13 @@ class RackTestApp < Minitest::Test
|
|
30
30
|
|
31
31
|
kvs = {}
|
32
32
|
kvs["Label"] = "entry"
|
33
|
+
kvs["SampleRate"] = "1000000"
|
34
|
+
kvs["SampleSource"] = "1"
|
33
35
|
validate_event_keys(traces[0], kvs)
|
34
36
|
|
35
37
|
kvs.clear
|
36
38
|
kvs["Label"] = "info"
|
37
39
|
kvs["Status"] = "200"
|
38
|
-
kvs["SampleRate"] = "1000000"
|
39
|
-
kvs["SampleSource"] = "1"
|
40
40
|
kvs["HTTP-Host"] = "example.org"
|
41
41
|
kvs["Port"] = "80"
|
42
42
|
kvs["Proto"] = "http"
|
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.6.
|
4
|
+
version: 2.6.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: json
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
|
-
type: :
|
21
|
+
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
|
-
type: :
|
35
|
+
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
description: The oboe gem provides TraceView instrumentation for Ruby and Ruby frameworks.
|
@@ -47,8 +47,8 @@ extensions:
|
|
47
47
|
extra_rdoc_files:
|
48
48
|
- LICENSE
|
49
49
|
files:
|
50
|
-
- .gitignore
|
51
|
-
- .travis.yml
|
50
|
+
- ".gitignore"
|
51
|
+
- ".travis.yml"
|
52
52
|
- Appraisals
|
53
53
|
- CHANGELOG.md
|
54
54
|
- Gemfile
|
@@ -161,17 +161,17 @@ require_paths:
|
|
161
161
|
- lib
|
162
162
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 1.8.6
|
167
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
|
-
- -
|
169
|
+
- - ">="
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.2.2
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: AppNeta TraceView performance instrumentation gem for Ruby
|
@@ -201,4 +201,3 @@ test_files:
|
|
201
201
|
- test/support/liboboe_settings_test.rb
|
202
202
|
- test/support/config_test.rb
|
203
203
|
- test/support/xtrace_test.rb
|
204
|
-
has_rdoc:
|