oboe 2.2.6 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/.gitignore +6 -1
  2. data/Appraisals +20 -0
  3. data/Gemfile +16 -20
  4. data/README.md +280 -10
  5. data/Rakefile +63 -7
  6. data/ext/oboe_metal/extconf.rb +2 -1
  7. data/ext/oboe_metal/tests/test.rb +4 -0
  8. data/gemfiles/rails2.3.gemfile +18 -0
  9. data/gemfiles/rails2.3.gemfile.lock +95 -0
  10. data/gemfiles/rails3.0.gemfile +18 -0
  11. data/gemfiles/rails3.0.gemfile.lock +142 -0
  12. data/gemfiles/rails3.1.gemfile +18 -0
  13. data/gemfiles/rails3.1.gemfile.lock +152 -0
  14. data/gemfiles/rails3.2.gemfile +18 -0
  15. data/gemfiles/rails3.2.gemfile.lock +150 -0
  16. data/init.rb +1 -1
  17. data/lib/joboe_metal.rb +52 -34
  18. data/lib/method_profiling.rb +1 -1
  19. data/lib/oboe.rb +6 -5
  20. data/lib/oboe/api.rb +1 -1
  21. data/lib/oboe/api/layerinit.rb +3 -0
  22. data/lib/oboe/api/logging.rb +1 -1
  23. data/lib/oboe/api/memcache.rb +2 -2
  24. data/lib/oboe/api/profiling.rb +6 -4
  25. data/lib/oboe/api/tracing.rb +1 -1
  26. data/lib/oboe/api/util.rb +1 -1
  27. data/lib/oboe/config.rb +29 -10
  28. data/lib/oboe/frameworks/rails.rb +6 -7
  29. data/lib/oboe/frameworks/rails/inst/action_controller.rb +1 -1
  30. data/lib/oboe/frameworks/rails/inst/action_view.rb +3 -3
  31. data/lib/oboe/frameworks/rails/inst/action_view_2x.rb +3 -3
  32. data/lib/oboe/frameworks/rails/inst/action_view_30.rb +3 -3
  33. data/lib/oboe/frameworks/rails/inst/active_record.rb +1 -1
  34. data/lib/oboe/frameworks/rails/inst/connection_adapters/mysql.rb +1 -1
  35. data/lib/oboe/frameworks/rails/inst/connection_adapters/mysql2.rb +1 -1
  36. data/lib/oboe/frameworks/rails/inst/connection_adapters/oracle.rb +1 -1
  37. data/lib/oboe/frameworks/rails/inst/connection_adapters/postgresql.rb +1 -1
  38. data/lib/oboe/frameworks/rails/inst/connection_adapters/utils.rb +2 -2
  39. data/lib/oboe/inst/cassandra.rb +2 -2
  40. data/lib/oboe/inst/dalli.rb +8 -4
  41. data/lib/oboe/inst/http.rb +38 -34
  42. data/lib/oboe/inst/memcache.rb +12 -3
  43. data/lib/oboe/inst/memcached.rb +10 -5
  44. data/lib/oboe/inst/mongo.rb +19 -15
  45. data/lib/oboe/inst/moped.rb +120 -51
  46. data/lib/oboe/inst/rack.rb +14 -7
  47. data/lib/oboe/inst/resque.rb +2 -2
  48. data/lib/oboe/instrumentation.rb +3 -0
  49. data/lib/oboe/loading.rb +2 -6
  50. data/lib/oboe/logger.rb +3 -1
  51. data/lib/oboe/ruby.rb +3 -0
  52. data/lib/oboe/util.rb +2 -0
  53. data/lib/oboe/version.rb +5 -2
  54. data/lib/oboe_fu.rb +2 -0
  55. data/lib/oboe_metal.rb +23 -10
  56. data/lib/rails/generators/oboe/install_generator.rb +5 -3
  57. data/lib/rails/generators/oboe/templates/oboe_initializer.rb +24 -2
  58. data/oboe.gemspec +20 -14
  59. data/test/instrumentation/cassandra_test.rb +331 -0
  60. data/test/instrumentation/dalli_test.rb +157 -0
  61. data/test/instrumentation/http_test.rb +74 -0
  62. data/test/instrumentation/memcache_test.rb +251 -0
  63. data/test/instrumentation/memcached_test.rb +218 -0
  64. data/test/instrumentation/mongo_test.rb +406 -0
  65. data/test/instrumentation/moped_test.rb +468 -0
  66. data/test/instrumentation/rack_test.rb +55 -0
  67. data/test/instrumentation/resque_test.rb +62 -0
  68. data/test/minitest_helper.rb +113 -0
  69. data/test/support/config_test.rb +41 -0
  70. metadata +56 -35
  71. data/Gemfile.lock +0 -103
  72. data/Guardfile +0 -24
  73. data/install.rb +0 -1
  74. data/spec/instrumentation/cassandra_spec.rb +0 -18
  75. data/spec/instrumentation/dalli_spec.rb +0 -14
  76. data/spec/instrumentation/http_spec.rb +0 -14
  77. data/spec/instrumentation/memcache_spec.rb +0 -19
  78. data/spec/instrumentation/memcached_spec.rb +0 -22
  79. data/spec/instrumentation/mongo_spec.rb +0 -29
  80. data/spec/instrumentation/moped_spec.rb +0 -41
  81. data/spec/instrumentation/resque_spec.rb +0 -18
  82. data/spec/spec_helper.rb +0 -15
  83. data/spec/support/config_spec.rb +0 -27
  84. data/spec/support/oboe_spec.rb +0 -4
@@ -1,5 +1,6 @@
1
- # Copyright (c) 2012 by Tracelytics, Inc.
1
+ # Copyright (c) 2013 AppNeta, Inc.
2
2
  # All rights reserved.
3
+
3
4
  require 'mkmf'
4
5
  require 'rbconfig'
5
6
 
@@ -1,3 +1,6 @@
1
+ # Copyright (c) 2013 AppNeta, Inc.
2
+ # All rights reserved.
3
+
1
4
  require 'oboe'
2
5
 
3
6
  r = Oboe::UdpReporter.new('127.0.0.1')
@@ -5,3 +8,4 @@ Oboe::Context.init()
5
8
  e = Oboe::Context.createEvent()
6
9
  e.addInfo("TestKey", "TestValue")
7
10
  r.sendReport(e)
11
+
@@ -0,0 +1,18 @@
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=>"../"
@@ -0,0 +1,95 @@
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
@@ -0,0 +1,18 @@
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=>"../"
@@ -0,0 +1,142 @@
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
@@ -0,0 +1,18 @@
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.1.12"
16
+ gem "oboe", :path=>"../"
17
+
18
+ gemspec :name=>"oboe", :path=>"../"
@@ -0,0 +1,152 @@
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 (3.1.12)
10
+ actionpack (= 3.1.12)
11
+ mail (~> 2.4.4)
12
+ actionpack (3.1.12)
13
+ activemodel (= 3.1.12)
14
+ activesupport (= 3.1.12)
15
+ builder (~> 3.0.0)
16
+ erubis (~> 2.7.0)
17
+ i18n (~> 0.6)
18
+ rack (~> 1.3.6)
19
+ rack-cache (~> 1.2)
20
+ rack-mount (~> 0.8.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.0.4)
23
+ activemodel (3.1.12)
24
+ activesupport (= 3.1.12)
25
+ builder (~> 3.0.0)
26
+ i18n (~> 0.6)
27
+ activerecord (3.1.12)
28
+ activemodel (= 3.1.12)
29
+ activesupport (= 3.1.12)
30
+ arel (~> 2.2.3)
31
+ tzinfo (~> 0.3.29)
32
+ activeresource (3.1.12)
33
+ activemodel (= 3.1.12)
34
+ activesupport (= 3.1.12)
35
+ activesupport (3.1.12)
36
+ multi_json (~> 1.0)
37
+ appraisal (0.5.2)
38
+ bundler
39
+ rake
40
+ arel (2.2.3)
41
+ bson (1.9.0)
42
+ bson_ext (1.9.0)
43
+ bson (~> 1.9.0)
44
+ builder (3.0.4)
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.7.0)
53
+ hike (1.2.3)
54
+ i18n (0.6.4)
55
+ json (1.8.0)
56
+ mail (2.4.4)
57
+ i18n (>= 0.4.0)
58
+ mime-types (~> 1.16)
59
+ treetop (~> 1.4.8)
60
+ memcache-client (1.8.5)
61
+ memcached (1.6.1)
62
+ mime-types (1.23)
63
+ mongo (1.9.0)
64
+ bson (~> 1.9.0)
65
+ mono_logger (1.1.0)
66
+ moped (1.5.0)
67
+ multi_json (1.7.7)
68
+ polyglot (0.3.3)
69
+ rack (1.3.10)
70
+ rack-cache (1.2)
71
+ rack (>= 0.4)
72
+ rack-mount (0.8.3)
73
+ rack (>= 1.0.0)
74
+ rack-protection (1.5.0)
75
+ rack
76
+ rack-ssl (1.3.3)
77
+ rack
78
+ rack-test (0.6.2)
79
+ rack (>= 1.0)
80
+ rails (3.1.12)
81
+ actionmailer (= 3.1.12)
82
+ actionpack (= 3.1.12)
83
+ activerecord (= 3.1.12)
84
+ activeresource (= 3.1.12)
85
+ activesupport (= 3.1.12)
86
+ bundler (~> 1.0)
87
+ railties (= 3.1.12)
88
+ railties (3.1.12)
89
+ actionpack (= 3.1.12)
90
+ activesupport (= 3.1.12)
91
+ rack-ssl (~> 1.3.2)
92
+ rake (>= 0.8.7)
93
+ rdoc (~> 3.4)
94
+ thor (~> 0.14.6)
95
+ rake (10.1.0)
96
+ rdoc (3.12.2)
97
+ json (~> 1.4)
98
+ redis (3.0.4)
99
+ redis-namespace (1.3.0)
100
+ redis (~> 3.0.0)
101
+ resque (1.24.1)
102
+ mono_logger (~> 1.0)
103
+ multi_json (~> 1.0)
104
+ redis-namespace (~> 1.2)
105
+ sinatra (>= 0.9.2)
106
+ vegas (~> 0.1.2)
107
+ rspec (2.13.0)
108
+ rspec-core (~> 2.13.0)
109
+ rspec-expectations (~> 2.13.0)
110
+ rspec-mocks (~> 2.13.0)
111
+ rspec-core (2.13.1)
112
+ rspec-expectations (2.13.0)
113
+ diff-lcs (>= 1.1.3, < 2.0)
114
+ rspec-mocks (2.13.1)
115
+ simple_uuid (0.2.0)
116
+ sinatra (1.3.1)
117
+ rack (~> 1.3, >= 1.3.4)
118
+ rack-protection (~> 1.1, >= 1.1.2)
119
+ tilt (~> 1.3, >= 1.3.3)
120
+ sprockets (2.0.4)
121
+ hike (~> 1.2)
122
+ rack (~> 1.0)
123
+ tilt (~> 1.1, != 1.3.0)
124
+ thor (0.14.6)
125
+ thrift (0.8.0)
126
+ thrift_client (0.8.4)
127
+ thrift (~> 0.8.0)
128
+ tilt (1.4.1)
129
+ treetop (1.4.14)
130
+ polyglot
131
+ polyglot (>= 0.3.1)
132
+ tzinfo (0.3.37)
133
+ vegas (0.1.11)
134
+ rack (>= 1.0.0)
135
+
136
+ PLATFORMS
137
+ ruby
138
+
139
+ DEPENDENCIES
140
+ appraisal
141
+ bson_ext
142
+ cassandra
143
+ dalli
144
+ memcache-client
145
+ memcached
146
+ mongo
147
+ moped
148
+ oboe!
149
+ rails (~> 3.1.12)
150
+ rake
151
+ resque
152
+ rspec