oboe 2.6.4.1 → 2.6.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb3169ea3038b6293a945efb858b06d37de67546
4
- data.tar.gz: d1ea231c855de19561bf20a7fe6fc468ac26c990
3
+ metadata.gz: de480d62f58bc7fc1264f2200e2a6b9e2bd795dc
4
+ data.tar.gz: 674039622538fafb9f96b2c757d272e87502e261
5
5
  SHA512:
6
- metadata.gz: 2ca6ed914c0622b9aae98bf859500b7a08cd012c67f63b493914c2bdd1bc8663082aa75635efbde97aa966f3f39deb1b9c290169544b8ecf0547243e1c939a63
7
- data.tar.gz: 97db5fa26ea2233bb9da5723ff4675874d8590868dd7a2e22e8aa3339fe9d4da066662c1ef679a1c1f122f36d73ea62ede976c5d3214c0d0fca185e03034a3a0
6
+ metadata.gz: 857f1e991c9ce93e6fafdc945869c9fb55444b088a07c43887b2570d16c14a7fde1a671f6960177ec0a82aab4b9bcce5297421146d457907c1cf2e27b003392f
7
+ data.tar.gz: 4e26b5b965178772d41e7304245d9ff8f62d6034e7afbebfee97bdf21f012cad8bbb4d367aa2710f93dde5ae0eab322cee9200d4a275afbbf1bd05f9ccdeb120
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.0
3
+ - 2.1.1
4
4
  - 2.0.0
5
5
  - 1.9.3
6
6
  - 1.9.2
@@ -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 (RUBY_VERSION =~ /^1./) == 0
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' unless (RUBY_VERSION =~ /^1.8/) == 0
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
- gem 'padrino', '0.12.0' unless (RUBY_VERSION =~ /^1.8/) == 0
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'
@@ -1,27 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oboe (2.6.3.dev8)
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 (3.2.17)
11
- i18n (~> 0.6, >= 0.6.4)
12
- multi_json (~> 1.0)
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.9.2)
20
- bson_ext (1.9.2)
21
- bson (~> 1.9.2)
22
+ bson (1.10.1)
23
+ bson_ext (1.10.1)
24
+ bson (~> 1.10.1)
22
25
  builder (3.2.2)
23
- byebug (2.7.0)
24
- columnize (~> 0.3)
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.3.6)
33
- dalli (2.7.0)
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.2)
52
- minitest-reporters (1.0.2)
53
+ minitest (5.3.4)
54
+ minitest-reporters (1.0.4)
53
55
  ansi
54
56
  builder
55
57
  minitest (>= 5.0)
56
- powerbar
58
+ ruby-progressbar
57
59
  moneta (0.7.20)
58
- mongo (1.9.2)
59
- bson (~> 1.9.2)
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.9.2)
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.2)
102
+ rack-protection (1.5.3)
104
103
  rack
105
104
  rack-test (0.6.2)
106
105
  rack (>= 1.0)
107
- rake (10.2.2)
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.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)
@@ -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
- report_kvs[:RemoteHost] = @connection.host
43
- report_kvs[:RemotePort] = @connection.port
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
@@ -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
 
@@ -5,8 +5,8 @@ module Oboe
5
5
  module Version
6
6
  MAJOR = 2
7
7
  MINOR = 6
8
- PATCH = 4
9
- BUILD = 1
8
+ PATCH = 5
9
+ BUILD = 5
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
12
12
  end
@@ -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
 
@@ -1,4 +1,4 @@
1
- unless (RUBY_VERSION =~ /^1.8/) == 0
1
+ if RUBY_VERSION >= '1.9.3'
2
2
  require "minitest_helper"
3
3
  require File.expand_path(File.dirname(__FILE__) + '/apps/padrino_simple')
4
4
 
@@ -1,6 +1,6 @@
1
1
  require 'minitest_helper'
2
2
 
3
- if (RUBY_VERSION =~ /^1./) == 0
3
+ if RUBY_VERSION < '2.0'
4
4
  describe Oboe::Inst::Memcached do
5
5
  require 'memcached'
6
6
  require 'memcached/rails'
@@ -1,6 +1,6 @@
1
1
  require 'minitest_helper'
2
2
 
3
- if (RUBY_VERSION =~ /(^1.9.3|^2)/) == 0
3
+ if RUBY_VERSION >= '1.9.3'
4
4
  # Moped is tested against MRI 1.9.3, 2.0.0, and JRuby (1.9).
5
5
 
6
6
  describe Oboe::Inst::Moped do
@@ -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"
@@ -34,7 +34,7 @@ class RackTestApp < Minitest::Test
34
34
  kvs = {}
35
35
  kvs["SampleRate"] = "1000000"
36
36
  kvs["SampleSource"] = OBOE_SAMPLE_RATE_SOURCE_FILE.to_s
37
- validate_event_keys(traces[1], kvs)
37
+ validate_event_keys(traces[0], kvs)
38
38
 
39
39
  end
40
40
  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.6.4.1
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-04-30 00:00:00.000000000 Z
12
+ date: 2014-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rake
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: :development
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: json
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: :runtime
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: '0'
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.1.11
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: