airbrake 10.0.2 → 10.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake/delayed_job.rb +2 -2
- data/lib/airbrake/rails/active_job.rb +2 -2
- data/lib/airbrake/rails/backtrace_cleaner.rb +11 -0
- data/lib/airbrake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf7ffc169b0f4ee600dd9aa45f49b906192a6338181493c5a70d6b1e54f5d68
|
4
|
+
data.tar.gz: 8e996ba5aa92bca073cae278d53fe62c444aedc862aa95be32f0df35e58cfe7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9437169d94bde1b24c559f4f1c2c1ac143f8905e35dfd48a381a1cce3ff2476ede8dbef56ffffbba70ccc3364e76a2973d3ecc0005888efe4e78768a5de75ba
|
7
|
+
data.tar.gz: 4c0018a79a1d181af1fa1917e3ff8fbaff0eb9a24f236c28b0de5c5ac3a4e6474636d4aa3bd532e8be8bcc969eb9f1d5d6e326e58a64cd30f3a13dcb656162ae
|
data/lib/airbrake/delayed_job.rb
CHANGED
@@ -28,7 +28,7 @@ module Delayed
|
|
28
28
|
notice[:context][:action] = action
|
29
29
|
end
|
30
30
|
|
31
|
-
::Airbrake.
|
31
|
+
::Airbrake.notify_queue(
|
32
32
|
queue: action,
|
33
33
|
error_count: 1,
|
34
34
|
timing: 0.01,
|
@@ -36,7 +36,7 @@ module Delayed
|
|
36
36
|
|
37
37
|
raise exception
|
38
38
|
else
|
39
|
-
::Airbrake.
|
39
|
+
::Airbrake.notify_queue(
|
40
40
|
queue: job_class || job.payload_object.class.name,
|
41
41
|
error_count: 0,
|
42
42
|
timing: timing,
|
@@ -22,14 +22,14 @@ module Airbrake
|
|
22
22
|
block.call
|
23
23
|
end
|
24
24
|
rescue StandardError => exception
|
25
|
-
Airbrake.
|
25
|
+
Airbrake.notify_queue(
|
26
26
|
queue: job.class.name,
|
27
27
|
error_count: 1,
|
28
28
|
timing: 0.01,
|
29
29
|
)
|
30
30
|
raise exception
|
31
31
|
else
|
32
|
-
Airbrake.
|
32
|
+
Airbrake.notify_queue(
|
33
33
|
queue: job.class.name,
|
34
34
|
error_count: 0,
|
35
35
|
timing: timing,
|
@@ -4,9 +4,20 @@ module Airbrake
|
|
4
4
|
module Rails
|
5
5
|
# BacktraceCleaner is a wrapper around Rails.backtrace_cleaner.
|
6
6
|
class BacktraceCleaner
|
7
|
+
# @return [Regexp]
|
8
|
+
AIRBRAKE_FRAME_PATTERN = %r{/airbrake/lib/airbrake/}
|
9
|
+
|
7
10
|
def self.clean(backtrace)
|
8
11
|
::Rails.backtrace_cleaner.clean(backtrace).first(1)
|
9
12
|
end
|
10
13
|
end
|
11
14
|
end
|
12
15
|
end
|
16
|
+
|
17
|
+
if defined?(Rails)
|
18
|
+
# Silence own frames to let the cleaner proceed to the next line (and probably
|
19
|
+
# find the correct call-site coming from the app code rather this library).
|
20
|
+
Rails.backtrace_cleaner.add_silencer do |line|
|
21
|
+
line =~ Airbrake::Rails::BacktraceCleaner::AIRBRAKE_FRAME_PATTERN
|
22
|
+
end
|
23
|
+
end
|
data/lib/airbrake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.0.
|
4
|
+
version: 10.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake-ruby
|