gruf-sentry 1.3.0 → 1.4.0

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: a8f10ec71ba89c2017838ec9e941e6c5354a5c0a1b0a0e05bc8ef8848c3f5474
4
- data.tar.gz: e033a3f5aa0bd78cf8a2c037e96f4ef150f2c0378776b2d752b30a01befdb01e
3
+ metadata.gz: 5be5ead811b7149dc76af1ab04ef1519d31f0ea36c02c6011317b0bc66c4c5b1
4
+ data.tar.gz: 18a889e81d8f9450791546105721162e9ba24d5621576fb21fde8dcc5fa1aa9d
5
5
  SHA512:
6
- metadata.gz: 1cf64ae2a61837767c73775b613a3ad00e578dd8e76956180a12b75f78443c63cf6612f044ae713d1ae0d61c8ea12581a2638740c5db6bc624ef5364d94fd429
7
- data.tar.gz: c9ee9ba9753a5c7f36a0945d1a3bc9342c2476013e1e1299dba4b6d496fec3894bb80f3fa50cff732445fc3f8d14773b6e6a2851185a315e060353836f715669
6
+ metadata.gz: eb2909677b75bfd34f996db5dc67b04e3f4d87de376ce10290b2e7af2e4f618478626b4bc23419c3c6ef2ac7fb7099bbe8d4fb8f5a503cbf05eed75e4090d101
7
+ data.tar.gz: 779ff551e6b9fab963148faaee09d67381d8ac66f4ddd705ed93ebb74818bb2ca1b8362afae7164f5c37b7d066932818ce71468258d376d0e346441726c7e33d
data/CHANGELOG.md CHANGED
@@ -2,35 +2,40 @@ Changelog for the gruf-sentry gem.
2
2
 
3
3
  ### Pending release
4
4
 
5
+ ### 1.4.0
6
+
7
+ * Remove `GRPC::FailedPrecondition` from default error classes (equivalent is HTTP 412, so not an internal error)
8
+ * Remove `Raven` compatibility layer; you must be on sentry-ruby now
9
+
5
10
  ### 1.3.0
6
11
 
7
- - Upgrade to sentry-ruby 5.x
12
+ * Upgrade to sentry-ruby 5.x
8
13
 
9
14
  ### 1.2.0
10
15
 
11
- - Add Ruby 3.1 support
12
- - Drop Ruby 2.6 support
16
+ * Add Ruby 3.1 support
17
+ * Drop Ruby 2.6 support
13
18
 
14
19
  ### 1.1.0
15
20
 
16
- - Update Gruf::Sentry::ClientInterceptor for new sentry-ruby format
21
+ * Update Gruf::Sentry::ClientInterceptor for new sentry-ruby format
17
22
 
18
23
  ### 1.0.1
19
24
 
20
- - Update Sentry.capture_exception to work with new sentry-ruby format
25
+ * Update Sentry.capture_exception to work with new sentry-ruby format
21
26
 
22
27
  ### 1.0.0
23
28
 
24
- - Update to sentry-ruby
29
+ * Update to sentry-ruby
25
30
 
26
31
  ### 0.2.0
27
32
 
28
- - Add support for Ruby 3.0
29
- - Remove support for < Ruby 2.6
33
+ * Add support for Ruby 3.0
34
+ * Remove support for < Ruby 2.6
30
35
 
31
36
  ### 0.1.1
32
37
 
33
- - Fix issue with options reference in ErrorParser [#1]
38
+ * Fix issue with options reference in ErrorParser [#1]
34
39
 
35
40
  ### 0.1.0
36
41
 
@@ -24,7 +24,7 @@ module Gruf
24
24
  VALID_CONFIG_KEYS = {
25
25
  grpc_error_classes: ::ENV.fetch(
26
26
  'GRUF_SENTRY_GRPC_ERROR_CLASSES',
27
- 'GRPC::Unknown,GRPC::Internal,GRPC::DataLoss,GRPC::FailedPrecondition,GRPC::Unavailable,GRPC::DeadlineExceeded,GRPC::Cancelled'
27
+ 'GRPC::Unknown,GRPC::Internal,GRPC::DataLoss,GRPC::Unavailable,GRPC::DeadlineExceeded,GRPC::Cancelled'
28
28
  ).to_s.split(',').map(&:strip),
29
29
  default_error_code: ::ENV.fetch('GRUF_SENTRY_DEFAULT_ERROR_CODE', GRPC::Core::StatusCodes::INTERNAL).to_i,
30
30
  ignore_methods: ::ENV.fetch('GRUF_SENTRY_IGNORE_METHODS', '').split(',').map(&:strip) || []
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Gruf
19
19
  module Sentry
20
- VERSION = '1.3.0'
20
+ VERSION = '1.4.0'
21
21
  end
22
22
  end
data/lib/gruf/sentry.rb CHANGED
@@ -18,9 +18,6 @@
18
18
  require 'gruf'
19
19
  require 'sentry-ruby'
20
20
 
21
- # backwards-compatibly patch for sentry-raven users
22
- ::Raven = ::Sentry unless defined?(::Raven)
23
-
24
21
  # use Zeitwerk to lazily autoload all the files in the lib directory
25
22
  require 'zeitwerk'
26
23
  root_path = File.dirname(__dir__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gruf-sentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-05 00:00:00.000000000 Z
11
+ date: 2022-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler-audit