oboe 2.7.5.wolf3 → 2.7.5.1

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: f5427f0bc7cf869364aa07ec582633d0f653a2f6
4
- data.tar.gz: bead1a11c86b6c6f31624b6adeb59dacb8a8d065
3
+ metadata.gz: 1059bbe25a316d6aff4e47bfc54425319d927b83
4
+ data.tar.gz: 6c69d5e5e31a09e538eecc54b60f233fc059cd69
5
5
  SHA512:
6
- metadata.gz: 15eeaa666f1479ec04f69e3dcae6a2d6ccc2ec911f8c0570244f69209e8e7eafbe1894f01463102e63480ad6bbec9f2642e2e4ec45ef409d0fa1d5f9992079b6
7
- data.tar.gz: b759d55b685bad1dd86eb8b05abd85a2ca68cdd36dbc573a5979acc2abf034d911dd69f1e62a8c70c90b1142d4687a04f294ff18a56ea52f9e112c873f633399
6
+ metadata.gz: 55bdc56bf7ffd69bde324e1ec9a83f2be500336fb5b08ec25c3bd70df2282787ab78c7962312613203cf3f5a7281894df78b3796a73a175eeed9c5dff635e5f5
7
+ data.tar.gz: da3a740d93c420c2f7644105bb6a5bb569c8b2a9ae1205c956f0662d47f64b5c9a5cf486bc8d7a4cae0e845c927e0f24f20c5a9b5badd090f1cf073ef06b9ab9
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
 
3
- cache:
3
+ cache:
4
4
  bundler: true
5
5
  directories:
6
6
  - vendor/bundle
@@ -24,12 +24,13 @@ before_install:
24
24
  - gem update --system 2.1.11
25
25
  - gem --version
26
26
  - sudo sh -c "echo 'JVM_OPTS=\"\${JVM_OPTS} -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh"
27
+ - echo "127.0.0.1 localhost" | sudo tee /etc/hosts
27
28
  - echo "127.0.0.1 " `hostname` | sudo tee /etc/hosts
28
29
  - sudo service cassandra start
29
30
 
30
31
  before_script: sleep 10
31
32
 
32
- install:
33
+ install:
33
34
  - wget https://www.tracelytics.com/install_tracelytics.sh
34
35
  - sudo sh ./install_tracelytics.sh f51e2a43-0ee5-4851-8a54-825773b3218e
35
36
  - sudo apt-get install -y tracelytics-java-agent
@@ -40,7 +41,7 @@ before_script:
40
41
 
41
42
  script: "bundle exec rake test"
42
43
 
43
- services:
44
+ services:
44
45
  - mongodb
45
46
  - memcached
46
47
  - cassandra
@@ -48,4 +49,4 @@ services:
48
49
 
49
50
  matrix:
50
51
  allow_failures:
51
-
52
+
@@ -4,12 +4,27 @@ https://github.com/appneta/oboe-ruby/releases
4
4
 
5
5
  Dates in this file are in the format MM/DD/YYYY.
6
6
 
7
+ # oboe 2.7.5.1 (11/20/2014)
8
+
9
+ This patch release includes:
10
+
11
+ * New [Typhoeus](https://github.com/typhoeus/typhoeus) instrumentation: #90
12
+ * JRuby: Better Handling of Agent JSON Parsing Errors: #89
13
+ * Faraday doesn't Log like the others; Fixup Verbose Logging: #79
14
+ * Add DB Adapters to __Init reporting: #83
15
+ * Extended Typhoeus tests: #92
16
+
17
+ Pushed to Rubygems:
18
+
19
+ https://rubygems.org/gems/oboe/versions/2.7.5.1
20
+ https://rubygems.org/gems/oboe/versions/2.7.5.1-java
21
+
7
22
  # oboe 2.7.4.1 (10/26/2014)
8
23
 
9
24
  This patch release includes:
10
25
 
11
26
  * Make Oboe::API available even when liboboe.so is not #81 (thanks Cannon!)
12
- * Add OS and Oboe::Config info to support_report #80
27
+ * Add OS and Oboe::Config info to support report #80
13
28
 
14
29
  Pushed to Rubygems:
15
30
 
@@ -22,7 +37,7 @@ This patch release includes:
22
37
 
23
38
  * Fix require statements under certain variations of REE-1.8.7: #78 (thanks @madrobby)
24
39
  * Faraday instrumentation fails to capture and pass params update block: #79
25
- * Add method to log environment details for support investigations (`Oboe.support_report`): #77
40
+ * Add method to log environment details for support investigations (`Oboe.support_ report`): #77
26
41
 
27
42
  Pushed to Rubygems:
28
43
 
data/Gemfile CHANGED
@@ -14,6 +14,7 @@ group :development do
14
14
  gem 'perftools.rb', :platforms => [ :mri_20, :mri_21 ], :require => 'perftools'
15
15
  if RUBY_VERSION > '1.8.7'
16
16
  gem 'pry'
17
+ gem 'pry-byebug', :platforms => [ :mri_20, :mri_21 ]
17
18
  else
18
19
  gem 'pry', '0.9.12.4'
19
20
  end
data/Rakefile CHANGED
@@ -98,6 +98,7 @@ task :recompile => [ :distclean, :compile ]
98
98
 
99
99
  task :console do
100
100
  Bundler.require(:default, :development)
101
+ Oboe::Config[:tracing_mode] = :always
101
102
  ARGV.clear
102
103
  Pry.start
103
104
  end
@@ -9,7 +9,7 @@ module Oboe
9
9
  MAJOR = 2
10
10
  MINOR = 7
11
11
  PATCH = 5
12
- BUILD = "wolf3"
12
+ BUILD = 1
13
13
 
14
14
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
15
15
  end
@@ -46,7 +46,116 @@ describe Oboe::Inst::TyphoeusRequestOps do
46
46
  traces[3]['Label'].must_equal 'exit'
47
47
  end
48
48
 
49
- it 'should trace a typhoeus request to an instr\'d app' do
49
+ it 'should trace a typhoeus POST request' do
50
+ Oboe::API.start_trace('typhoeus_test') do
51
+ Typhoeus.post("https://internal.tv.appneta.com/api-v2/log_message",
52
+ :body => { :key => "oboe-ruby-fake", :content => "oboe-ruby repo test suite"})
53
+ end
54
+
55
+ traces = get_all_traces
56
+ traces.count.must_equal 5
57
+
58
+ validate_outer_layers(traces, 'typhoeus_test')
59
+
60
+ traces[1]['Layer'].must_equal 'typhoeus'
61
+ traces[1].key?('Backtrace').must_equal Oboe::Config[:typhoeus][:collect_backtraces]
62
+
63
+ traces[2]['Layer'].must_equal 'typhoeus'
64
+ traces[2]['Label'].must_equal 'info'
65
+ traces[2]['IsService'].must_equal '1'
66
+ traces[2]['RemoteProtocol'].downcase.must_equal 'https'
67
+ traces[2]['RemoteHost'].must_equal 'internal.tv.appneta.com'
68
+ traces[2]['RemotePort'].must_equal '443'
69
+ traces[2]['ServiceArg'].must_equal '/api-v2/log_message'
70
+ traces[2]['HTTPMethod'].must_equal 'post'
71
+ traces[2]['HTTPStatus'].must_equal '302'
72
+
73
+ traces[3]['Layer'].must_equal 'typhoeus'
74
+ traces[3]['Label'].must_equal 'exit'
75
+ end
76
+
77
+ it 'should trace a typhoeus PUT request' do
78
+ Oboe::API.start_trace('typhoeus_test') do
79
+ Typhoeus.put("https://internal.tv.appneta.com/api-v2/log_message",
80
+ :body => { :key => "oboe-ruby-fake", :content => "oboe-ruby repo test suite"})
81
+ end
82
+
83
+ traces = get_all_traces
84
+ traces.count.must_equal 5
85
+
86
+ validate_outer_layers(traces, 'typhoeus_test')
87
+
88
+ traces[1]['Layer'].must_equal 'typhoeus'
89
+ traces[1].key?('Backtrace').must_equal Oboe::Config[:typhoeus][:collect_backtraces]
90
+
91
+ traces[2]['Layer'].must_equal 'typhoeus'
92
+ traces[2]['Label'].must_equal 'info'
93
+ traces[2]['IsService'].must_equal '1'
94
+ traces[2]['RemoteProtocol'].downcase.must_equal 'https'
95
+ traces[2]['RemoteHost'].must_equal 'internal.tv.appneta.com'
96
+ traces[2]['RemotePort'].must_equal '443'
97
+ traces[2]['ServiceArg'].must_equal '/api-v2/log_message'
98
+ traces[2]['HTTPMethod'].must_equal 'put'
99
+ traces[2]['HTTPStatus'].must_equal '405'
100
+
101
+ traces[3]['Layer'].must_equal 'typhoeus'
102
+ traces[3]['Label'].must_equal 'exit'
103
+ end
104
+
105
+ it 'should trace a typhoeus DELETE request' do
106
+ Oboe::API.start_trace('typhoeus_test') do
107
+ Typhoeus.delete("https://internal.tv.appneta.com/api-v2/log_message")
108
+ end
109
+
110
+ traces = get_all_traces
111
+ traces.count.must_equal 5
112
+
113
+ validate_outer_layers(traces, 'typhoeus_test')
114
+
115
+ traces[1]['Layer'].must_equal 'typhoeus'
116
+ traces[1].key?('Backtrace').must_equal Oboe::Config[:typhoeus][:collect_backtraces]
117
+
118
+ traces[2]['Layer'].must_equal 'typhoeus'
119
+ traces[2]['Label'].must_equal 'info'
120
+ traces[2]['IsService'].must_equal '1'
121
+ traces[2]['RemoteProtocol'].downcase.must_equal 'https'
122
+ traces[2]['RemoteHost'].must_equal 'internal.tv.appneta.com'
123
+ traces[2]['RemotePort'].must_equal '443'
124
+ traces[2]['ServiceArg'].must_equal '/api-v2/log_message'
125
+ traces[2]['HTTPMethod'].must_equal 'delete'
126
+ traces[2]['HTTPStatus'].must_equal '405'
127
+
128
+ traces[3]['Layer'].must_equal 'typhoeus'
129
+ traces[3]['Label'].must_equal 'exit'
130
+ end
131
+
132
+ it 'should trace a typhoeus HEAD request' do
133
+ Oboe::API.start_trace('typhoeus_test') do
134
+ Typhoeus.head("http://www.appneta.com/")
135
+ end
136
+
137
+ traces = get_all_traces
138
+ traces.count.must_equal 5
139
+
140
+ validate_outer_layers(traces, 'typhoeus_test')
141
+
142
+ traces[1]['Layer'].must_equal 'typhoeus'
143
+ traces[1].key?('Backtrace').must_equal Oboe::Config[:typhoeus][:collect_backtraces]
144
+
145
+ traces[2]['Layer'].must_equal 'typhoeus'
146
+ traces[2]['Label'].must_equal 'info'
147
+ traces[2]['IsService'].must_equal '1'
148
+ traces[2]['RemoteProtocol'].downcase.must_equal 'http'
149
+ traces[2]['RemoteHost'].must_equal 'www.appneta.com'
150
+ traces[2]['ServiceArg'].must_equal '/'
151
+ traces[2]['HTTPMethod'].must_equal 'head'
152
+ traces[2]['HTTPStatus'].must_equal '200'
153
+
154
+ traces[3]['Layer'].must_equal 'typhoeus'
155
+ traces[3]['Label'].must_equal 'exit'
156
+ end
157
+
158
+ it 'should trace a typhoeus GET request to an instr\'d app' do
50
159
  Oboe::API.start_trace('typhoeus_test') do
51
160
  Typhoeus.get("www.gameface.in/gamers")
52
161
  end
@@ -71,7 +180,8 @@ describe Oboe::Inst::TyphoeusRequestOps do
71
180
  traces[3]['Layer'].must_equal 'typhoeus'
72
181
  traces[3]['Label'].must_equal 'exit'
73
182
  end
74
- it 'should trace a typhoeus request with error' do
183
+
184
+ it 'should trace a typhoeus GET request with DNS error' do
75
185
  Oboe::API.start_trace('typhoeus_test') do
76
186
  Typhoeus.get("thisdomaindoesntexisthopefully.asdf/products/traceview/")
77
187
  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.7.5.wolf3
4
+ version: 2.7.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Giacomo Lombardo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-18 00:00:00.000000000 Z
12
+ date: 2014-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -173,9 +173,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  version: 1.8.6
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
- - - ">"
176
+ - - ">="
177
177
  - !ruby/object:Gem::Version
178
- version: 1.3.1
178
+ version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
181
  rubygems_version: 2.2.2
@@ -213,3 +213,4 @@ test_files:
213
213
  - test/support/liboboe_settings_test.rb
214
214
  - test/support/config_test.rb
215
215
  - test/support/xtrace_test.rb
216
+ has_rdoc: