sentry-ruby-core 4.6.3 → 4.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sentry/configuration.rb +1 -1
- data/lib/sentry/rake.rb +20 -19
- data/lib/sentry/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: 442dc8b92f82ac1873cc066b8188d49ad4673425c2833416b5262c8076e4a13d
|
4
|
+
data.tar.gz: 1c7b5d1d49ebc37da4cd3b524b50e0d50b1e7152cbbeb8f712603a57ceeac53c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5f3aa0e7950fff974c056ac389218d68677804b590e1d94bac250070130630915d72905df42d88d6beb434912f893c3a86a6e0a734c8f6b7e6b91ae44d813e2
|
7
|
+
data.tar.gz: d5f973ca005648a658c71e2c2e2a336bf68f7511b856147b4f8bcacd6234bf6d950e37d97af422dfc0c730f75e57e0e7a1ec41e2c819ed6cb222a811494d55e1
|
data/lib/sentry/configuration.rb
CHANGED
@@ -89,7 +89,7 @@ module Sentry
|
|
89
89
|
# You should probably append to this rather than overwrite it.
|
90
90
|
attr_accessor :excluded_exceptions
|
91
91
|
|
92
|
-
# Boolean to check nested exceptions when deciding if to exclude. Defaults to
|
92
|
+
# Boolean to check nested exceptions when deciding if to exclude. Defaults to true
|
93
93
|
attr_accessor :inspect_exception_causes_for_exclusion
|
94
94
|
alias inspect_exception_causes_for_exclusion? inspect_exception_causes_for_exclusion
|
95
95
|
|
data/lib/sentry/rake.rb
CHANGED
@@ -1,30 +1,31 @@
|
|
1
1
|
require "rake"
|
2
2
|
require "rake/task"
|
3
3
|
|
4
|
-
module
|
5
|
-
|
4
|
+
module Sentry
|
5
|
+
module Rake
|
6
|
+
module Application
|
7
|
+
def display_error_message(ex)
|
8
|
+
Sentry.capture_exception(ex, hint: { background: false }) do |scope|
|
9
|
+
task_name = top_level_tasks.join(' ')
|
10
|
+
scope.set_transaction_name(task_name)
|
11
|
+
scope.set_tag("rake_task", task_name)
|
12
|
+
end if Sentry.initialized? && !Sentry.configuration.skip_rake_integration
|
6
13
|
|
7
|
-
|
8
|
-
|
9
|
-
Sentry.capture_exception(ex, hint: { background: false }) do |scope|
|
10
|
-
task_name = top_level_tasks.join(' ')
|
11
|
-
scope.set_transaction_name(task_name)
|
12
|
-
scope.set_tag("rake_task", task_name)
|
13
|
-
end if Sentry.initialized? && !Sentry.configuration.skip_rake_integration
|
14
|
-
|
15
|
-
orig_display_error_messsage(ex)
|
14
|
+
super
|
15
|
+
end
|
16
16
|
end
|
17
|
-
end
|
18
17
|
|
19
|
-
|
20
|
-
|
18
|
+
module Task
|
19
|
+
def execute(args=nil)
|
20
|
+
return super unless Sentry.initialized? && Sentry.get_current_hub
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
Sentry.get_current_hub.with_background_worker_disabled do
|
26
|
-
orig_execute(args)
|
22
|
+
Sentry.get_current_hub.with_background_worker_disabled do
|
23
|
+
super
|
24
|
+
end
|
27
25
|
end
|
28
26
|
end
|
29
27
|
end
|
30
28
|
end
|
29
|
+
|
30
|
+
Rake::Application.prepend(Sentry::Rake::Application)
|
31
|
+
Rake::Task.prepend(Sentry::Rake::Task)
|
data/lib/sentry/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-ruby-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|