sentry-sidekiq 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/sentry/sidekiq/cleanup_middleware.rb +3 -1
- data/lib/sentry/sidekiq/error_handler.rb +3 -1
- data/lib/sentry/sidekiq/version.rb +1 -1
- data/sentry-sidekiq.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ff7807f2ed20afd1ddbb25fdefca1d4fa031ed3e7f5a00b0e1070be3b33a46
|
4
|
+
data.tar.gz: 5653d9635ed8c25f8adf20e7913c12953b4ba8acaf515020cc5859804053abac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff3cc9abe9105fbfd68b843cc6146d7612e31b96c71bcfcaba346ff0399d3c8e55de2b6e8532a3fb47a7fa41cd4605a83e1b1123678bee8cd3fe0477e20b36bf
|
7
|
+
data.tar.gz: 900d1648fff07895107620ae91e58ee006de41fc2735a16e8f56e5d5d579f68977c729f84614955f2334ab1a9bb973e65aee7c97fc11f08c36d44989d5033c72
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/sentry-sidekiq.gemspec
CHANGED
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.
|
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-
|
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.
|
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.
|
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: []
|