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 +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -0
- data/lib/errbase/version.rb +1 -1
- data/lib/errbase.rb +14 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec32c1052d88256d49d854bc68aa25410f0995d7bf1478db5425ea8e77c1e872
|
4
|
+
data.tar.gz: 133f93f8f9575547c825e70aed7d236632ba4936986a21317361ba26681a5cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f0f90db13c306409417cf576dba61dd35944439d8ec15378a348351706c98b9bc1a5fa82860c98346fd6c2c82cf92cfebe5bcdf016bfa0c8714e749a7353aa0
|
7
|
+
data.tar.gz: 86dedeb1d1262b2d0db60d7c907f3e9e1abb84b45cbfd65080338bd269c186732d7e26e83a9e51d5ac1d26247572909b7b293303fb816bcb85ee080eb6dab270
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
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.
|
data/lib/errbase/version.rb
CHANGED
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
|
-
|
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.
|
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:
|
11
|
+
date: 2022-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
|
-
email: andrew@
|
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.
|
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
|