safely_block 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39809689c7a5c7570d0fd1703d0211a4b677fb8c84bcad78659677eb9077b4ba
4
- data.tar.gz: c575e5971423655a45aaf7977e00ea71c5f172e33dd27004dd8d00da21507570
3
+ metadata.gz: 9718e09578683dc5b503a61269db28485c4f051f433d799a2696e01ae079df6d
4
+ data.tar.gz: b79ada309186f1a78c47f9f255148e12a635a9bcaa798a36507d4a846fa57f2d
5
5
  SHA512:
6
- metadata.gz: 5dc08f81d8ebd8246577f9d01cd25a4685d7b005fc54186847f137e34af1bca21aaa73dc020bd94127ed018e6cb9cba49580ce29397e40b4f5fcf1be028491ce
7
- data.tar.gz: f7eb244c765e0fec4f1c4f2f1d4771258cbc6969c15e00596602a8cfa00bf8f9e4911b80ca72cb333c8d3df05dde1fa2ddc8757729389268202b5c14f0ff283e
6
+ metadata.gz: e32e5d526b3b4464e1141ef6e1a001e6e46c033d753c4377344292e5c2971a1faa72684f503ff7e08273deba056a42f184414f862b89d35e54805005fcc2fb54
7
+ data.tar.gz: fc30341cdd15f537dc69ad8e7b16e3aa76579d5a9e2a247e51338a035ef15aa07ce3479573d76f4eb98cbeb6edbd97c5920d2b3ea6cd1389b8cff6c7065cb487
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.1 (2024-09-04)
2
+
3
+ - Added support for Datadog
4
+
1
5
  ## 0.4.0 (2023-05-07)
2
6
 
3
7
  - Added exception reporting from [Errbase](https://github.com/ankane/errbase)
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?branch=master)](https://github.com/ankane/safely/actions)
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/)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Safely
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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: 2023-05-08 00:00:00.000000000 Z
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.4.10
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