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 +4 -4
- data/lib/aws/xray/error_handlers.rb +3 -1
- data/lib/aws/xray/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 231791ce8d888fca58f8fe0e3585d0274d04264b
|
4
|
+
data.tar.gz: 6d0ee6a959f020d778434e12208b56ce210a1215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/aws/xray/version.rb
CHANGED