aws-xray 0.17.0 → 0.17.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: 4662c7e02f96d99ec218697501619aafc62a6e42
4
- data.tar.gz: 21600a8fce7aa843e712b31f0ca7417bf9cc6a3c
3
+ metadata.gz: b9227b7e977572ae1321361acc8260612a19b21d
4
+ data.tar.gz: 779b197ccdfb1befca633e7875a223281aa2b16a
5
5
  SHA512:
6
- metadata.gz: 05dd8e836d6149bcbdfd04338103abb82baa82a084dd89b6b77c95a45648d5250ca41637456cff69a38753ce9bc582bad9c2134f7e31f470bf6bfa050f0e5459
7
- data.tar.gz: d419d7eacc9e52d05ebbbf068fb795133b87d67fed9997036c39502dad95ac0907927b40d46b2c6d115b18dccf67c0e45f4b41d1f1208fe4c40bb2b0326ee45d
6
+ metadata.gz: d3845def551c656b5522a2a03d87cad327003af06919ef847cb356c7c284ccd3880601e7d8f6f11bdd1c3b8d1cd335f952d9b849b3677bf7f696da93e9c88e58
7
+ data.tar.gz: 16a6da0c06316fb37f94256094ebe9cadf1b13e67926aaea6890057e3c34510454caae83f0aa1ef89096912729b7fd868480dd9030686d1c7b1599785b987b81
data/README.md CHANGED
@@ -189,7 +189,7 @@ The error handler must be callable object and receive 2 arguments and 2 keyword
189
189
  Optionaly, aws-xray offers an error handler which integrats with Sentry. To use it:
190
190
 
191
191
  ```ruby
192
- Aws::Xray.config.segment_sending_error_handler = ErrorHandlerWithSentry.new
192
+ Aws::Xray.config.segment_sending_error_handler = Aws::Xray::ErrorHandlerWithSentry.new
193
193
  ```
194
194
 
195
195
  ## Development
data/aws-xray.gemspec CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'coveralls'
28
28
  spec.add_development_dependency 'pry-byebug'
29
29
  spec.add_development_dependency 'rack-test'
30
+ spec.add_development_dependency 'rack-timeout'
30
31
  spec.add_development_dependency 'rake'
31
32
  spec.add_development_dependency 'rspec'
32
33
  end
@@ -86,8 +86,8 @@ module Aws
86
86
  self.class.new(@name.dup, @client.copy, @trace.copy, @base_segment_id ? @base_segment_id.dup : nil)
87
87
  end
88
88
 
89
- # Rescue standard errors and record the error to the segment.
90
- # Then re-raise the error.
89
+ # Rescue all exceptions and record the exception to the segment.
90
+ # Then re-raise the exception.
91
91
  #
92
92
  # @yield [Aws::Xray::Segment]
93
93
  # @return [Object] A value which given block returns.
@@ -97,7 +97,7 @@ module Aws
97
97
 
98
98
  begin
99
99
  yield base_segment
100
- rescue => e
100
+ rescue Exception => e
101
101
  base_segment.set_error(fault: true, e: e)
102
102
  raise e
103
103
  ensure
@@ -106,9 +106,6 @@ module Aws
106
106
  end
107
107
  end
108
108
 
109
- # Rescue standard errors and record the error to the sub segment.
110
- # Then re-raise the error.
111
- #
112
109
  # @param [Boolean] remote
113
110
  # @param [String] name Arbitrary name of the sub segment. e.g. "funccall_f".
114
111
  # @yield [Aws::Xray::SubSegment]
@@ -119,7 +116,7 @@ module Aws
119
116
 
120
117
  begin
121
118
  yield sub
122
- rescue => e
119
+ rescue Exception => e
123
120
  sub.set_error(fault: true, e: e)
124
121
  raise e
125
122
  ensure
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Xray
3
- VERSION = '0.17.0'
3
+ VERSION = '0.17.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-xray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rack-timeout
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rake
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
206
  version: '0'
193
207
  requirements: []
194
208
  rubyforge_project:
195
- rubygems_version: 2.6.11
209
+ rubygems_version: 2.5.2
196
210
  signing_key:
197
211
  specification_version: 4
198
212
  summary: The unofficial X-Ray Tracing SDK for Ruby.