sentry-ruby-core 4.3.0 → 4.3.1

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: 66ef212c06425a29b56b64935c1fb662633fa80fb9f58b9680b1d95220ee8b5d
4
- data.tar.gz: 18e211d0c93d18717795b23290c2cb7da503b0dcd1690c1c8b51861c3a37ef98
3
+ metadata.gz: 8a2e4ce39cece4f17353a14a3984cfaf57b9fc1f9288915a36f9c5ae56e719cd
4
+ data.tar.gz: 77ebe61492554532ce811320fbae436735c82ac3a0586176ee53b040211d6b81
5
5
  SHA512:
6
- metadata.gz: e334875a26a04e45a78c37e7bb0014604cd2b400b89eb01faa3ae21adc1f9072e46227ce880c1406148e32d6a125504dc08ffab5e1ac61c0b3befbd31e5352ea
7
- data.tar.gz: 4c01fb8d489a3d143a738180f3f68ba62d3882267ecf17b82c3cf0e509ab36a8b458699d022d5d55699baacaccd2acc3bfede0d332ae5b50776128ac5c164a2a
6
+ metadata.gz: 34504541c4743476d4360e7b452e8a7a4b9a3bd66d80878a768d839d8fe00e5294c2e385d62d50527ddf957368a660c8276342abf72a82079583c0a33385e29d
7
+ data.tar.gz: d050d0b1bf6346553db6cc02e84b144908d877bd1883243526b0366e21eb97e924cf2f23c2c8ad10383785a90e05337615041ac6d9c87c36694d6077e3f6481d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.3.1
4
+
5
+ - Add Sentry.set_context helper [#1337](https://github.com/getsentry/sentry-ruby/pull/1337)
6
+ - 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)
8
+ - Sentry.add_breadcrumb should call Hub#add_breadcrumb [#1358](https://github.com/getsentry/sentry-ruby/pull/1358)
9
+ - Fixes [#1357](https://github.com/getsentry/sentry-ruby/issues/1357)
10
+
3
11
  ## 4.3.0
4
12
 
5
13
  ### Features
data/Gemfile CHANGED
@@ -8,6 +8,7 @@ gem "i18n", "<= 1.8.7"
8
8
 
9
9
  gem "rake", "~> 12.0"
10
10
  gem "rspec", "~> 3.0"
11
+ gem "rspec-retry"
11
12
  gem "codecov", "0.2.12"
12
13
 
13
14
  gem "pry"
data/README.md CHANGED
@@ -72,7 +72,7 @@ end
72
72
 
73
73
  ### Sentry doesn't report some kinds of data by default
74
74
 
75
- **Sentry ignores some exceptions by default** - most of these are related to 404s parameter parsing errors. [For a complete list, see the `IGNORE_DEFAULT` constant](https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/configuration.rb#L118) and the integration gems' `IGNORE_DEFAULT`, like [`sentry-rails`'s](https://github.com/getsentry/sentry-ruby/blob/master/sentry-rails/lib/sentry/rails/configuration.rb#L12)
75
+ **Sentry ignores some exceptions by default** - most of these are related to 404s parameter parsing errors. [For a complete list, see the `IGNORE_DEFAULT` constant](https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/configuration.rb#L151) and the integration gems' `IGNORE_DEFAULT`, like [`sentry-rails`'s](https://github.com/getsentry/sentry-ruby/blob/master/sentry-rails/lib/sentry/rails/configuration.rb#L12)
76
76
 
77
77
  Sentry doesn't send personally identifiable information (pii) by default, such as request body, user ip or cookies. If you want those information to be sent, you can use the `send_default_pii` config option:
78
78
 
@@ -249,8 +249,8 @@ Sentry.capture_exception(exception, tags: {foo: "bar"})
249
249
 
250
250
  ## More Information
251
251
 
252
- * [Documentation](https://docs.sentry.io/platforms/ruby/)
253
- * [Bug Tracker](https://github.com/getsentry/sentry-ruby/issues)
254
- * [Forum](https://forum.sentry.io/)
252
+ - [Documentation](https://docs.sentry.io/platforms/ruby/)
253
+ - [Bug Tracker](https://github.com/getsentry/sentry-ruby/issues)
254
+ - [Forum](https://forum.sentry.io/)
255
255
  - [Discord](https://discord.gg/ez5KZN7)
256
256
 
data/lib/sentry-ruby.rb CHANGED
@@ -58,7 +58,7 @@ module Sentry
58
58
  extend Forwardable
59
59
 
60
60
  def_delegators :get_current_client, :configuration, :send_event
61
- def_delegators :get_current_scope, :set_tags, :set_extras, :set_user
61
+ def_delegators :get_current_scope, :set_tags, :set_extras, :set_user, :set_context
62
62
 
63
63
  attr_accessor :background_worker
64
64
 
@@ -80,7 +80,7 @@ module Sentry
80
80
 
81
81
  # Takes an instance of Sentry::Breadcrumb and stores it to the current active scope.
82
82
  def add_breadcrumb(breadcrumb)
83
- get_current_scope.breadcrumbs.record(breadcrumb)
83
+ get_current_hub&.add_breadcrumb(breadcrumb)
84
84
  end
85
85
 
86
86
  # Returns the current active hub.
@@ -50,7 +50,7 @@ module Sentry
50
50
  end
51
51
  end
52
52
 
53
- return if ignored_logger?(progname) || message.empty?
53
+ return if ignored_logger?(progname) || message == ""
54
54
 
55
55
  # some loggers will add leading/trailing space as they (incorrectly, mind you)
56
56
  # think of logging as a shortcut to std{out,err}
@@ -2,6 +2,6 @@ module Sentry
2
2
  class Error < StandardError
3
3
  end
4
4
 
5
- class ExternalError < StandardError
5
+ class ExternalError < Error
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module Sentry
2
- VERSION = "4.3.0"
2
+ VERSION = "4.3.1"
3
3
  end
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.3.0
4
+ version: 4.3.1
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-03-12 00:00:00.000000000 Z
11
+ date: 2021-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday