oboe 2.6.6.1 → 2.6.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +6 -0
  3. data/Appraisals +6 -16
  4. data/CHANGELOG.md +30 -14
  5. data/Gemfile +4 -3
  6. data/Gemfile.lock +20 -25
  7. data/Rakefile +5 -1
  8. data/ext/oboe_metal/extconf.rb +2 -2
  9. data/gemfiles/mongo.gemfile +33 -0
  10. data/gemfiles/moped.gemfile +33 -0
  11. data/lib/base.rb +28 -10
  12. data/lib/joboe_metal.rb +12 -34
  13. data/lib/method_profiling.rb +3 -3
  14. data/lib/oboe/api/layerinit.rb +14 -14
  15. data/lib/oboe/api/logging.rb +11 -11
  16. data/lib/oboe/api/profiling.rb +7 -6
  17. data/lib/oboe/api/tracing.rb +3 -3
  18. data/lib/oboe/api/util.rb +4 -4
  19. data/lib/oboe/config.rb +7 -7
  20. data/lib/oboe/frameworks/padrino.rb +2 -2
  21. data/lib/oboe/frameworks/rails.rb +11 -11
  22. data/lib/oboe/frameworks/rails/inst/action_controller.rb +4 -4
  23. data/lib/oboe/frameworks/rails/inst/action_view.rb +2 -2
  24. data/lib/oboe/frameworks/rails/inst/action_view_2x.rb +1 -1
  25. data/lib/oboe/frameworks/rails/inst/action_view_30.rb +1 -1
  26. data/lib/oboe/frameworks/rails/inst/active_record.rb +1 -1
  27. data/lib/oboe/frameworks/rails/inst/connection_adapters/mysql.rb +3 -3
  28. data/lib/oboe/frameworks/rails/inst/connection_adapters/mysql2.rb +2 -2
  29. data/lib/oboe/frameworks/rails/inst/connection_adapters/postgresql.rb +1 -1
  30. data/lib/oboe/frameworks/rails/inst/connection_adapters/utils.rb +8 -8
  31. data/lib/oboe/frameworks/sinatra.rb +33 -3
  32. data/lib/oboe/frameworks/sinatra/templates.rb +2 -2
  33. data/lib/oboe/inst/cassandra.rb +19 -19
  34. data/lib/oboe/inst/dalli.rb +7 -7
  35. data/lib/oboe/inst/http.rb +5 -5
  36. data/lib/oboe/inst/memcache.rb +14 -14
  37. data/lib/oboe/inst/memcached.rb +8 -8
  38. data/lib/oboe/inst/mongo.rb +2 -2
  39. data/lib/oboe/inst/moped.rb +29 -29
  40. data/lib/oboe/inst/rack.rb +3 -3
  41. data/lib/oboe/inst/redis.rb +24 -24
  42. data/lib/oboe/inst/resque.rb +4 -4
  43. data/lib/oboe/loading.rb +6 -6
  44. data/lib/oboe/logger.rb +4 -4
  45. data/lib/oboe/version.rb +1 -1
  46. data/lib/oboe_metal.rb +11 -39
  47. data/test/frameworks/apps/grape_simple.rb +1 -1
  48. data/test/frameworks/apps/sinatra_simple.rb +1 -1
  49. data/test/frameworks/padrino_test.rb +3 -3
  50. data/test/frameworks/sinatra_test.rb +3 -3
  51. data/test/instrumentation/cassandra_test.rb +45 -45
  52. data/test/instrumentation/http_test.rb +6 -6
  53. data/test/instrumentation/mongo_test.rb +347 -345
  54. data/test/instrumentation/moped_test.rb +40 -40
  55. data/test/instrumentation/redis_hashes_test.rb +20 -20
  56. data/test/instrumentation/redis_keys_test.rb +19 -19
  57. data/test/instrumentation/redis_lists_test.rb +22 -22
  58. data/test/instrumentation/redis_misc_test.rb +14 -14
  59. data/test/instrumentation/redis_sets_test.rb +20 -20
  60. data/test/instrumentation/redis_sortedsets_test.rb +25 -25
  61. data/test/instrumentation/redis_strings_test.rb +27 -27
  62. data/test/instrumentation/resque_test.rb +7 -7
  63. data/test/minitest_helper.rb +18 -6
  64. data/test/profiling/method_test.rb +24 -24
  65. data/test/support/liboboe_settings_test.rb +3 -3
  66. data/test/support/xtrace_test.rb +2 -2
  67. metadata +26 -32
  68. data/gemfiles/rails2.3.gemfile +0 -18
  69. data/gemfiles/rails2.3.gemfile.lock +0 -95
  70. data/gemfiles/rails3.0.gemfile +0 -18
  71. data/gemfiles/rails3.0.gemfile.lock +0 -142
  72. data/gemfiles/rails3.1.gemfile +0 -18
  73. data/gemfiles/rails3.1.gemfile.lock +0 -152
  74. data/gemfiles/rails3.2.gemfile +0 -18
  75. data/gemfiles/rails3.2.gemfile.lock +0 -150
@@ -5,7 +5,7 @@ require 'oboe/inst/rack'
5
5
 
6
6
  Oboe::Config[:tracing_mode] = 'always'
7
7
  Oboe::Config[:sample_rate] = 1e6
8
-
8
+
9
9
  class RackTestApp < Minitest::Test
10
10
  include Rack::Test::Methods
11
11
 
@@ -22,7 +22,7 @@ class RackTestApp < Minitest::Test
22
22
  end
23
23
 
24
24
  def test_localset_sample_source
25
- clear_all_traces
25
+ clear_all_traces
26
26
 
27
27
  get "/lobster"
28
28
 
@@ -31,7 +31,7 @@ class RackTestApp < Minitest::Test
31
31
 
32
32
  validate_outer_layers(traces, 'rack')
33
33
 
34
- kvs = {}
34
+ kvs = {}
35
35
  kvs["SampleRate"] = "1000000"
36
36
  kvs["SampleSource"] = OBOE_SAMPLE_RATE_SOURCE_FILE.to_s
37
37
  validate_event_keys(traces[0], kvs)
@@ -9,7 +9,7 @@ describe Oboe::XTrace do
9
9
  Oboe::XTrace.valid?("1B00000000000000000000000000000000000000000000000000000000").must_equal false
10
10
  Oboe::XTrace.valid?("1b").must_equal false
11
11
  Oboe::XTrace.valid?("29348209348").must_equal false
12
-
12
+
13
13
  # Standard X-Trace IDs
14
14
  Oboe::XTrace.valid?("1B7435A9FE510AE4533414D425DADF4E180D2B4E3649E60702469DB05F").must_equal true
15
15
  Oboe::XTrace.valid?("1BA462ADE6CFE479081764CC476AA983351DC51B1BCB3468DA6F06EEFA").must_equal true
@@ -25,7 +25,7 @@ describe Oboe::XTrace do
25
25
  task_id.is_a?(String).must_equal true
26
26
  task_id.must_equal "F86B3D3342FCECAECE33C6411379BB171505DB6A"
27
27
  task_id.length.must_equal 40
28
-
28
+
29
29
  task_id = Oboe::XTrace.task_id("1B77970F82332EE22FF04C249FCBA8F63E8AFA2C6730E209453259B2D6")
30
30
  task_id.is_a?(String).must_equal true
31
31
  task_id.must_equal "77970F82332EE22FF04C249FCBA8F63E8AFA2C67"
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.6.1
4
+ version: 2.6.7.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-16 00:00:00.000000000 Z
12
+ date: 2014-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- version_requirements: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - '>='
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
16
  requirement: !ruby/object:Gem::Requirement
22
17
  requirements:
23
- - - '>='
18
+ - - ">="
24
19
  - !ruby/object:Gem::Version
25
20
  version: '0'
26
- prerelease: false
27
21
  type: :runtime
28
- - !ruby/object:Gem::Dependency
29
- name: rake
22
+ prerelease: false
30
23
  version_requirements: !ruby/object:Gem::Requirement
31
24
  requirements:
32
- - - '>='
25
+ - - ">="
33
26
  - !ruby/object:Gem::Version
34
27
  version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
35
30
  requirement: !ruby/object:Gem::Requirement
36
31
  requirements:
37
- - - '>='
32
+ - - ">="
38
33
  - !ruby/object:Gem::Version
39
34
  version: '0'
40
- prerelease: false
41
35
  type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
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
- - .gitignore
51
- - .travis.yml
50
+ - ".gitignore"
51
+ - ".travis.yml"
52
52
  - Appraisals
53
53
  - CHANGELOG.md
54
54
  - Gemfile
@@ -64,14 +64,8 @@ files:
64
64
  - ext/oboe_metal/src/oboe.hpp
65
65
  - ext/oboe_metal/src/oboe_wrap.cxx
66
66
  - ext/oboe_metal/tests/test.rb
67
- - gemfiles/rails2.3.gemfile
68
- - gemfiles/rails2.3.gemfile.lock
69
- - gemfiles/rails3.0.gemfile
70
- - gemfiles/rails3.0.gemfile.lock
71
- - gemfiles/rails3.1.gemfile
72
- - gemfiles/rails3.1.gemfile.lock
73
- - gemfiles/rails3.2.gemfile
74
- - gemfiles/rails3.2.gemfile.lock
67
+ - gemfiles/mongo.gemfile
68
+ - gemfiles/moped.gemfile
75
69
  - get_version.rb
76
70
  - init.rb
77
71
  - lib/base.rb
@@ -158,34 +152,34 @@ homepage: http://www.appneta.com/products/traceview/
158
152
  licenses:
159
153
  - AppNeta Open License, Version 1.0
160
154
  metadata: {}
161
- post_install_message:
155
+ post_install_message:
162
156
  rdoc_options: []
163
157
  require_paths:
164
158
  - lib
165
159
  required_ruby_version: !ruby/object:Gem::Requirement
166
160
  requirements:
167
- - - '>='
161
+ - - ">="
168
162
  - !ruby/object:Gem::Version
169
163
  version: 1.8.6
170
164
  required_rubygems_version: !ruby/object:Gem::Requirement
171
165
  requirements:
172
- - - '>='
166
+ - - ">="
173
167
  - !ruby/object:Gem::Version
174
168
  version: '0'
175
169
  requirements: []
176
- rubyforge_project:
177
- rubygems_version: 2.1.9
178
- signing_key:
170
+ rubyforge_project:
171
+ rubygems_version: 2.2.2
172
+ signing_key:
179
173
  specification_version: 4
180
174
  summary: AppNeta TraceView performance instrumentation gem for Ruby
181
175
  test_files:
182
- - test/minitest_helper.rb
183
176
  - test/frameworks/grape_test.rb
184
177
  - test/frameworks/padrino_test.rb
185
178
  - test/frameworks/sinatra_test.rb
186
179
  - test/frameworks/apps/sinatra_simple.rb
187
180
  - test/frameworks/apps/padrino_simple.rb
188
181
  - test/frameworks/apps/grape_simple.rb
182
+ - test/minitest_helper.rb
189
183
  - test/instrumentation/mongo_test.rb
190
184
  - test/instrumentation/redis_hashes_test.rb
191
185
  - test/instrumentation/redis_misc_test.rb
@@ -1,18 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "dalli"
8
- gem "memcache-client"
9
- gem "memcached"
10
- gem "cassandra"
11
- gem "mongo"
12
- gem "bson_ext"
13
- gem "moped"
14
- gem "resque"
15
- gem "rails", "~> 2.3.18"
16
- gem "oboe", :path=>"../"
17
-
18
- gemspec :name=>"oboe", :path=>"../"
@@ -1,95 +0,0 @@
1
- PATH
2
- remote: /home/pglombardo/Projects/oboe-ruby
3
- specs:
4
- oboe (2.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- actionmailer (2.3.18)
10
- actionpack (= 2.3.18)
11
- actionpack (2.3.18)
12
- activesupport (= 2.3.18)
13
- rack (~> 1.1.0)
14
- activerecord (2.3.18)
15
- activesupport (= 2.3.18)
16
- activeresource (2.3.18)
17
- activesupport (= 2.3.18)
18
- activesupport (2.3.18)
19
- appraisal (0.5.2)
20
- bundler
21
- rake
22
- backports (3.3.2)
23
- bson (1.9.0)
24
- bson_ext (1.9.0)
25
- bson (~> 1.9.0)
26
- cassandra (0.18.0)
27
- json
28
- rake
29
- simple_uuid (~> 0.2.0)
30
- thrift_client (>= 0.7.0, < 0.9)
31
- dalli (2.6.4)
32
- diff-lcs (1.2.4)
33
- json (1.8.0)
34
- memcache-client (1.8.5)
35
- memcached (1.6.1)
36
- mongo (1.9.0)
37
- bson (~> 1.9.0)
38
- mono_logger (1.1.0)
39
- moped (1.5.0)
40
- multi_json (1.7.7)
41
- rack (1.1.6)
42
- rails (2.3.18)
43
- actionmailer (= 2.3.18)
44
- actionpack (= 2.3.18)
45
- activerecord (= 2.3.18)
46
- activeresource (= 2.3.18)
47
- activesupport (= 2.3.18)
48
- rake (>= 0.8.3)
49
- rake (10.1.0)
50
- redis (3.0.4)
51
- redis-namespace (1.3.0)
52
- redis (~> 3.0.0)
53
- resque (1.24.1)
54
- mono_logger (~> 1.0)
55
- multi_json (~> 1.0)
56
- redis-namespace (~> 1.2)
57
- sinatra (>= 0.9.2)
58
- vegas (~> 0.1.2)
59
- rspec (2.13.0)
60
- rspec-core (~> 2.13.0)
61
- rspec-expectations (~> 2.13.0)
62
- rspec-mocks (~> 2.13.0)
63
- rspec-core (2.13.1)
64
- rspec-expectations (2.13.0)
65
- diff-lcs (>= 1.1.3, < 2.0)
66
- rspec-mocks (2.13.1)
67
- simple_uuid (0.2.0)
68
- sinatra (1.2.9)
69
- backports
70
- rack (~> 1.1, < 1.5)
71
- tilt (>= 1.2.2, < 2.0)
72
- thrift (0.8.0)
73
- thrift_client (0.8.4)
74
- thrift (~> 0.8.0)
75
- tilt (1.4.1)
76
- vegas (0.1.11)
77
- rack (>= 1.0.0)
78
-
79
- PLATFORMS
80
- ruby
81
-
82
- DEPENDENCIES
83
- appraisal
84
- bson_ext
85
- cassandra
86
- dalli
87
- memcache-client
88
- memcached
89
- mongo
90
- moped
91
- oboe!
92
- rails (~> 2.3.18)
93
- rake
94
- resque
95
- rspec
@@ -1,18 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "dalli"
8
- gem "memcache-client"
9
- gem "memcached"
10
- gem "cassandra"
11
- gem "mongo"
12
- gem "bson_ext"
13
- gem "moped"
14
- gem "resque"
15
- gem "rails", "~> 3.0.20"
16
- gem "oboe", :path=>"../"
17
-
18
- gemspec :name=>"oboe", :path=>"../"
@@ -1,142 +0,0 @@
1
- PATH
2
- remote: /home/pglombardo/Projects/oboe-ruby
3
- specs:
4
- oboe (2.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- abstract (1.0.0)
10
- actionmailer (3.0.20)
11
- actionpack (= 3.0.20)
12
- mail (~> 2.2.19)
13
- actionpack (3.0.20)
14
- activemodel (= 3.0.20)
15
- activesupport (= 3.0.20)
16
- builder (~> 2.1.2)
17
- erubis (~> 2.6.6)
18
- i18n (~> 0.5.0)
19
- rack (~> 1.2.5)
20
- rack-mount (~> 0.6.14)
21
- rack-test (~> 0.5.7)
22
- tzinfo (~> 0.3.23)
23
- activemodel (3.0.20)
24
- activesupport (= 3.0.20)
25
- builder (~> 2.1.2)
26
- i18n (~> 0.5.0)
27
- activerecord (3.0.20)
28
- activemodel (= 3.0.20)
29
- activesupport (= 3.0.20)
30
- arel (~> 2.0.10)
31
- tzinfo (~> 0.3.23)
32
- activeresource (3.0.20)
33
- activemodel (= 3.0.20)
34
- activesupport (= 3.0.20)
35
- activesupport (3.0.20)
36
- appraisal (0.5.2)
37
- bundler
38
- rake
39
- arel (2.0.10)
40
- backports (3.3.2)
41
- bson (1.9.0)
42
- bson_ext (1.9.0)
43
- bson (~> 1.9.0)
44
- builder (2.1.2)
45
- cassandra (0.18.0)
46
- json
47
- rake
48
- simple_uuid (~> 0.2.0)
49
- thrift_client (>= 0.7.0, < 0.9)
50
- dalli (2.6.4)
51
- diff-lcs (1.2.4)
52
- erubis (2.6.6)
53
- abstract (>= 1.0.0)
54
- i18n (0.5.0)
55
- json (1.8.0)
56
- mail (2.2.19)
57
- activesupport (>= 2.3.6)
58
- i18n (>= 0.4.0)
59
- mime-types (~> 1.16)
60
- treetop (~> 1.4.8)
61
- memcache-client (1.8.5)
62
- memcached (1.6.1)
63
- mime-types (1.23)
64
- mongo (1.9.0)
65
- bson (~> 1.9.0)
66
- mono_logger (1.1.0)
67
- moped (1.5.0)
68
- multi_json (1.7.7)
69
- polyglot (0.3.3)
70
- rack (1.2.8)
71
- rack-mount (0.6.14)
72
- rack (>= 1.0.0)
73
- rack-test (0.5.7)
74
- rack (>= 1.0)
75
- rails (3.0.20)
76
- actionmailer (= 3.0.20)
77
- actionpack (= 3.0.20)
78
- activerecord (= 3.0.20)
79
- activeresource (= 3.0.20)
80
- activesupport (= 3.0.20)
81
- bundler (~> 1.0)
82
- railties (= 3.0.20)
83
- railties (3.0.20)
84
- actionpack (= 3.0.20)
85
- activesupport (= 3.0.20)
86
- rake (>= 0.8.7)
87
- rdoc (~> 3.4)
88
- thor (~> 0.14.4)
89
- rake (10.1.0)
90
- rdoc (3.12.2)
91
- json (~> 1.4)
92
- redis (3.0.4)
93
- redis-namespace (1.3.0)
94
- redis (~> 3.0.0)
95
- resque (1.24.1)
96
- mono_logger (~> 1.0)
97
- multi_json (~> 1.0)
98
- redis-namespace (~> 1.2)
99
- sinatra (>= 0.9.2)
100
- vegas (~> 0.1.2)
101
- rspec (2.13.0)
102
- rspec-core (~> 2.13.0)
103
- rspec-expectations (~> 2.13.0)
104
- rspec-mocks (~> 2.13.0)
105
- rspec-core (2.13.1)
106
- rspec-expectations (2.13.0)
107
- diff-lcs (>= 1.1.3, < 2.0)
108
- rspec-mocks (2.13.1)
109
- simple_uuid (0.2.0)
110
- sinatra (1.2.9)
111
- backports
112
- rack (~> 1.1, < 1.5)
113
- tilt (>= 1.2.2, < 2.0)
114
- thor (0.14.6)
115
- thrift (0.8.0)
116
- thrift_client (0.8.4)
117
- thrift (~> 0.8.0)
118
- tilt (1.4.1)
119
- treetop (1.4.14)
120
- polyglot
121
- polyglot (>= 0.3.1)
122
- tzinfo (0.3.37)
123
- vegas (0.1.11)
124
- rack (>= 1.0.0)
125
-
126
- PLATFORMS
127
- ruby
128
-
129
- DEPENDENCIES
130
- appraisal
131
- bson_ext
132
- cassandra
133
- dalli
134
- memcache-client
135
- memcached
136
- mongo
137
- moped
138
- oboe!
139
- rails (~> 3.0.20)
140
- rake
141
- resque
142
- rspec