sentry-sidekiq 4.0.0 → 4.1.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: b3b29a56d23a29c7b3426f0a90d9e9de25c7631f13dd545373e321dfe1a0bff8
4
- data.tar.gz: e6ac29d7564fa61608f2c72e58b19930d40ef647437d822513225f8e5b87f374
3
+ metadata.gz: 06ff7807f2ed20afd1ddbb25fdefca1d4fa031ed3e7f5a00b0e1070be3b33a46
4
+ data.tar.gz: 5653d9635ed8c25f8adf20e7913c12953b4ba8acaf515020cc5859804053abac
5
5
  SHA512:
6
- metadata.gz: 8a321bd42d977c7e4f0e0c25c01cb75b6e67488bf11e3a52956072e97aa8f04ff236ce522362dd60515acfa37f406e2bf8ff6b9b3e153b5eb736cbcd9fc32d8d
7
- data.tar.gz: e809fe552887416af9dc5112fcf40539102dfab901d1d20dc6e013eecc6d5f0c7fe9c91a7e3962d7555e6a336657bcc56d5eec99d55827c931abcf766b97e166
6
+ metadata.gz: ff3cc9abe9105fbfd68b843cc6146d7612e31b96c71bcfcaba346ff0399d3c8e55de2b6e8532a3fb47a7fa41cd4605a83e1b1123678bee8cd3fe0477e20b36bf
7
+ data.tar.gz: 900d1648fff07895107620ae91e58ee006de41fc2735a16e8f56e5d5d579f68977c729f84614955f2334ab1a9bb973e65aee7c97fc11f08c36d44989d5033c72
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.1.0
4
+
5
+ - Check SDK initialization before running integrations [#1151](https://github.com/getsentry/sentry-ruby/pull/1151)
6
+ - Fixes [#1145](https://github.com/getsentry/sentry-ruby/pull/1145)
7
+
3
8
  ## 4.0.0
4
9
 
5
10
  - Only documents update for the official release and no API/feature changes.
@@ -2,6 +2,8 @@ module Sentry
2
2
  module Sidekiq
3
3
  class CleanupMiddleware
4
4
  def call(_worker, job, queue)
5
+ return yield unless Sentry.initialized?
6
+
5
7
  Sentry.clone_hub_to_current_thread
6
8
  Sentry.with_scope do |scope|
7
9
  scope.set_extras(sidekiq: job.merge("queue" => queue))
@@ -10,7 +12,7 @@ module Sentry
10
12
  begin
11
13
  yield
12
14
  rescue => ex
13
- Sentry.capture_exception(ex)
15
+ Sentry.capture_exception(ex, hint: { background: false })
14
16
  end
15
17
  end
16
18
  end
@@ -6,13 +6,15 @@ module Sentry
6
6
  SIDEKIQ_NAME = "Sidekiq".freeze
7
7
 
8
8
  def call(ex, context)
9
+ return unless Sentry.initialized?
9
10
  context = Sentry::Sidekiq::ContextFilter.new.filter_context(context)
10
11
 
11
12
  Sentry.with_scope do |scope|
12
13
  scope.set_transaction_name transaction_from_context(context)
13
14
  Sentry.capture_exception(
14
15
  ex,
15
- extra: { sidekiq: context }
16
+ extra: { sidekiq: context },
17
+ hint: { background: false }
16
18
  )
17
19
  end
18
20
  end
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Sidekiq
3
- VERSION = "4.0.0"
3
+ VERSION = "4.1.0"
4
4
  end
5
5
  end
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "sentry-ruby", ">= 4.0.0"
25
+ spec.add_dependency "sentry-ruby", ">= 4.1.0"
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-10 00:00:00.000000000 Z
11
+ date: 2020-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sentry-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: 4.1.0
27
27
  description: A gem that provides Sidekiq integration for the Sentry error logger
28
28
  email: accounts@sentry.io
29
29
  executables: []