errbase 0.2.1 → 0.2.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
  SHA256:
3
- metadata.gz: bbc2eadf89c8fecc6273c1421b4c3928c910bcd5ecc7d7efd11b67bb47a41cd9
4
- data.tar.gz: 4a1c2c6d40845dc55934e8ce9569e9990b1cd09aeea4862febd271074aa5b61e
3
+ metadata.gz: ec32c1052d88256d49d854bc68aa25410f0995d7bf1478db5425ea8e77c1e872
4
+ data.tar.gz: 133f93f8f9575547c825e70aed7d236632ba4936986a21317361ba26681a5cf7
5
5
  SHA512:
6
- metadata.gz: 1484556155f8fd4d9893c8f43cfc17233ee88323a177bc72ba33bb88ab56c88ac21e6f8f6c0c691504dd317a250430ff90fe821248f0b55f2435ba5072071c50
7
- data.tar.gz: 477bbd79a3577047a691d8a02630d9fe324120284e8c2794b589de5f9829f95c01d8a7215c877bc785cad6c59111205d608126a60bc2e5cf214d351cf04b6b6e
6
+ metadata.gz: 3f0f90db13c306409417cf576dba61dd35944439d8ec15378a348351706c98b9bc1a5fa82860c98346fd6c2c82cf92cfebe5bcdf016bfa0c8714e749a7353aa0
7
+ data.tar.gz: 86dedeb1d1262b2d0db60d7c907f3e9e1abb84b45cbfd65080338bd269c186732d7e26e83a9e51d5ac1d26247572909b7b293303fb816bcb85ee080eb6dab270
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.2 (2022-02-03)
2
+
3
+ - Added support for Scout APM
4
+ - Fixed warning with Appsignal
5
+
1
6
  ## 0.2.1 (2021-01-03)
2
7
 
3
8
  - Added support for `sentry-ruby` gem
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2019 Andrew Kane
1
+ Copyright (c) 2014-2022 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -13,6 +13,7 @@ Libraries are automatically detected. Supports:
13
13
  - [New Relic](https://newrelic.com/)
14
14
  - [Raygun](https://raygun.io/)
15
15
  - [Rollbar](https://rollbar.com/)
16
+ - [Scout APM](https://scoutapm.com/)
16
17
  - [Sentry](https://getsentry.com/)
17
18
 
18
19
  ```ruby
@@ -31,6 +32,8 @@ Errbase.report(e, {username: "hello"})
31
32
 
32
33
  > Context is not supported for Google Stackdriver
33
34
 
35
+ [![Build Status](https://github.com/ankane/errbase/workflows/build/badge.svg?branch=master)](https://github.com/ankane/errbase/actions)
36
+
34
37
  ## Installation
35
38
 
36
39
  Errbase is designed to be used as a dependency.
@@ -1,3 +1,3 @@
1
1
  module Errbase
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/lib/errbase.rb CHANGED
@@ -5,7 +5,15 @@ module Errbase
5
5
  def report(e, info = {})
6
6
  Airbrake.notify(e, info) if defined?(Airbrake)
7
7
 
8
- Appsignal.send_error(e, info) if defined?(Appsignal)
8
+ if defined?(Appsignal)
9
+ if Appsignal::VERSION.to_i >= 3
10
+ Appsignal.send_error(e) do |transaction|
11
+ transaction.set_tags(info)
12
+ end
13
+ else
14
+ Appsignal.send_error(e, info)
15
+ end
16
+ end
9
17
 
10
18
  if defined?(Bugsnag)
11
19
  Bugsnag.notify(e) do |report|
@@ -28,6 +36,11 @@ module Errbase
28
36
 
29
37
  Rollbar.error(e, info) if defined?(Rollbar)
30
38
 
39
+ if defined?(ScoutApm::Error)
40
+ ScoutApm::Context.add(info)
41
+ ScoutApm::Error.capture(e)
42
+ end
43
+
31
44
  Sentry.capture_exception(e, extra: info) if defined?(Sentry)
32
45
  rescue => e
33
46
  $stderr.puts "[errbase] Error reporting exception: #{e.class.name}: #{e.message}"
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-03 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
- email: andrew@chartkick.com
14
+ email: andrew@ankane.org
15
15
  executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
- rubygems_version: 3.1.4
43
+ rubygems_version: 3.3.3
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: Common exception reporting for a variety of services