safely_block 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -1
- data/lib/safely/services.rb +5 -0
- data/lib/safely/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9718e09578683dc5b503a61269db28485c4f051f433d799a2696e01ae079df6d
|
4
|
+
data.tar.gz: b79ada309186f1a78c47f9f255148e12a635a9bcaa798a36507d4a846fa57f2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e32e5d526b3b4464e1141ef6e1a001e6e46c033d753c4377344292e5c2971a1faa72684f503ff7e08273deba056a42f184414f862b89d35e54805005fcc2fb54
|
7
|
+
data.tar.gz: fc30341cdd15f537dc69ad8e7b16e3aa76579d5a9e2a247e51338a035ef15aa07ce3479573d76f4eb98cbeb6edbd97c5920d2b3ea6cd1389b8cff6c7065cb487
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,7 @@ In development and test environments, exceptions are raised so you can fix them.
|
|
12
12
|
|
13
13
|
[Read more](https://ankane.org/safely-pattern)
|
14
14
|
|
15
|
-
[![Build Status](https://github.com/ankane/safely/workflows/build/badge.svg
|
15
|
+
[![Build Status](https://github.com/ankane/safely/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/safely/actions)
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
@@ -99,6 +99,7 @@ Reports exceptions to a variety of services out of the box.
|
|
99
99
|
- [Airbrake](https://airbrake.io/)
|
100
100
|
- [Appsignal](https://appsignal.com/)
|
101
101
|
- [Bugsnag](https://bugsnag.com/)
|
102
|
+
- [Datadog](https://www.datadoghq.com/product/error-tracking/)
|
102
103
|
- [Exception Notification](https://github.com/smartinez87/exception_notification)
|
103
104
|
- [Google Stackdriver](https://cloud.google.com/stackdriver/)
|
104
105
|
- [Honeybadger](https://www.honeybadger.io/)
|
data/lib/safely/services.rb
CHANGED
@@ -19,6 +19,11 @@ module Safely
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
if defined?(Datadog::Tracing)
|
23
|
+
Datadog::Tracing.active_span&.set_tags(info)
|
24
|
+
Datadog::Tracing.active_span&.set_error(e)
|
25
|
+
end
|
26
|
+
|
22
27
|
ExceptionNotifier.notify_exception(e, data: info) if defined?(ExceptionNotifier)
|
23
28
|
|
24
29
|
# TODO add info
|
data/lib/safely/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safely_block
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: andrew@ankane.org
|
@@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
44
|
requirements: []
|
45
|
-
rubygems_version: 3.
|
45
|
+
rubygems_version: 3.5.11
|
46
46
|
signing_key:
|
47
47
|
specification_version: 4
|
48
48
|
summary: Rescue and report exceptions in non-critical code
|