aws-xray 0.20.1 → 0.20.2

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: 67b79fcebc97a6d0c2299393c7c2838f4f735984
4
- data.tar.gz: '09c4d5e7224a12b736b61bf64caac3bf68f4eb08'
3
+ metadata.gz: 231791ce8d888fca58f8fe0e3585d0274d04264b
4
+ data.tar.gz: 6d0ee6a959f020d778434e12208b56ce210a1215
5
5
  SHA512:
6
- metadata.gz: 01ae28f7129a1148a88f268aefd9a140891f4412bf3ac6384d445f20980b6e0c6a86feba26ebe72b0db9e49de5bcbe087c4fe55b424014442246e61a6611504e
7
- data.tar.gz: efd0a9100b3c9774a6252dd628fa145d4ae282955ebad96c84c5b0fcbb6a63699f0cd538c7a47aa64381474374284699c66850688de9df7bb1d06cb124d8fd7a
6
+ metadata.gz: d103436545a4a1e2f9dba0064397502302592c61573070f9bb219dfffa358d4234bea88d47b1cddeb9de0fc6b4c11eda9f163bea073b8a59525d639a16c0936a
7
+ data.tar.gz: c3c6e440be855d2161e70898261559e1ce7464d286f288026b63c68130bc4e4b0e91ec732b55777cb54e8c83858780e6c97fba7e5ec07bd274d20565990de997
@@ -23,9 +23,11 @@ Error: #{error}
23
23
 
24
24
  # Must be configured sentry-raven gem.
25
25
  class ErrorHandlerWithSentry
26
+ ERROR_LEVEL = 'warning'.freeze
27
+
26
28
  def call(error, payload, host:, port:)
27
29
  if defined?(Raven)
28
- ::Raven.capture_exception(error)
30
+ ::Raven.capture_exception(error, level: ERROR_LEVEL, extra: { 'payload' => payload })
29
31
  else
30
32
  $stderr.puts('ErrorHandlerWithSentry is configured but `Raven` is undefined.')
31
33
  end
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Xray
3
- VERSION = '0.20.1'
3
+ VERSION = '0.20.2'
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.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono