Skip to content

Commit 943b403

Browse files
committed
Merge branch '4-3'
2 parents 351c64e + 963d3a2 commit 943b403

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

sentry-rails/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 4.3.2
4+
5+
- Avoid recording SendEventJob's transaction [#1351](https://github.com/getsentry/sentry-ruby/pull/1351)
6+
- Fixes [#1348](https://github.com/getsentry/sentry-ruby/issues/1348)
7+
38
## 4.3.1
49

510
- Only apply background worker patch if ActiveRecord is loaded [#1350](https://github.com/getsentry/sentry-ruby/pull/1350)

sentry-ruby/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Add Sentry.set_context helper [#1337](https://github.com/getsentry/sentry-ruby/pull/1337)
66
- Fix handle the case where the logger messages is not of String type [#1341](https://github.com/getsentry/sentry-ruby/pull/1341)
7+
- Don't report Sentry::ExternalError to Sentry [#1353](https://github.com/getsentry/sentry-ruby/pull/1353)
78

89
## 4.3.0
910

sentry-ruby/lib/sentry/exceptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module Sentry
22
class Error < StandardError
33
end
44

5-
class ExternalError < StandardError
5+
class ExternalError < Error
66
end
77
end

sentry-ruby/spec/sentry/client_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@ class Exception < RuntimeError; end
179179
end
180180
end
181181

182+
context 'for a Sentry::ExternalError' do
183+
let(:exception) { Sentry::ExternalError.new }
184+
it 'does not create an event' do
185+
expect(subject.event_from_exception(exception)).to be_nil
186+
end
187+
end
188+
182189
context 'for an excluded exception type' do
183190
module Sentry::Test
184191
class BaseExc < RuntimeError; end

0 commit comments

Comments
 (0)