sentry-sidekiq 6.5.0 → 6.6.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/lib/sentry/sidekiq/error_handler.rb +6 -2
- data/lib/sentry/sidekiq/version.rb +1 -1
- data/sentry-sidekiq.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c7fbbeba293c6bee632748e38c7d46150f6dd1256b8452dab432c9ae1c16329
|
|
4
|
+
data.tar.gz: 42093226a4882d561d89b1116c1b95c8f120d7376d231a122672facff7c65d00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4bb0c9e624ba98bf4b5ad962a20722b8c9a6ef0bfd79682deb0d393d46ae64369f8fa25074a6942bb2f54d60b5843f91c4887f42b9eb9dbfde28a38138235da9
|
|
7
|
+
data.tar.gz: 166a47b9d2ee322490466afccfdc4a3ced407791301a97a9a3330685140e246a2879e29b3206bed7256d513e482145ad854f4027f04ad6a0f6e7f1d7f15b59fc
|
|
@@ -21,12 +21,14 @@ module Sentry
|
|
|
21
21
|
scope = Sentry.get_current_scope
|
|
22
22
|
scope.set_transaction_name(context_filter.transaction_name, source: :task) unless scope.transaction_name
|
|
23
23
|
|
|
24
|
+
retry_lim = retry_limit(context, sidekiq_config)
|
|
25
|
+
|
|
24
26
|
# If Sentry is configured to only report an error _after_ all retries have been exhausted,
|
|
25
27
|
# and if the job is retryable, and have not exceeded the retry_limit,
|
|
26
28
|
# return early.
|
|
27
29
|
if Sentry.configuration.sidekiq.report_after_job_retries && retryable?(context)
|
|
28
30
|
retry_count = context.dig(:job, "retry_count")
|
|
29
|
-
if retry_count.nil? || retry_count <
|
|
31
|
+
if retry_count.nil? || retry_count < retry_lim - 1
|
|
30
32
|
return
|
|
31
33
|
end
|
|
32
34
|
end
|
|
@@ -43,8 +45,10 @@ module Sentry
|
|
|
43
45
|
# attempt 2 - this is your first retry so retry_count is 0
|
|
44
46
|
# attempt 3 - you have retried once, retry_count is 1
|
|
45
47
|
attempt = retry_count.nil? ? 1 : retry_count.to_i + 2
|
|
48
|
+
# Cap at the final attempt so jobs with fewer retries than the threshold still report.
|
|
49
|
+
effective_threshold = [attempt_threshold, retry_lim + 1].min
|
|
46
50
|
|
|
47
|
-
return if attempt <
|
|
51
|
+
return if attempt < effective_threshold
|
|
48
52
|
end
|
|
49
53
|
|
|
50
54
|
Sentry::Sidekiq.capture_exception(
|
data/sentry-sidekiq.gemspec
CHANGED
|
@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
31
31
|
spec.require_paths = ["lib"]
|
|
32
32
|
|
|
33
|
-
spec.add_dependency "sentry-ruby", "~> 6.
|
|
33
|
+
spec.add_dependency "sentry-ruby", "~> 6.6.0"
|
|
34
34
|
spec.add_dependency "sidekiq", ">= 5.0"
|
|
35
35
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentry-sidekiq
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.
|
|
4
|
+
version: 6.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sentry Team
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 6.
|
|
18
|
+
version: 6.6.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 6.
|
|
25
|
+
version: 6.6.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: sidekiq
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -65,15 +65,15 @@ files:
|
|
|
65
65
|
- lib/sentry/sidekiq/sentry_context_middleware.rb
|
|
66
66
|
- lib/sentry/sidekiq/version.rb
|
|
67
67
|
- sentry-sidekiq.gemspec
|
|
68
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/6.
|
|
68
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/6.6.0/sentry-sidekiq
|
|
69
69
|
licenses:
|
|
70
70
|
- MIT
|
|
71
71
|
metadata:
|
|
72
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.
|
|
73
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.
|
|
74
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.
|
|
72
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.6.0/sentry-sidekiq
|
|
73
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.6.0/sentry-sidekiq
|
|
74
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.6.0/CHANGELOG.md
|
|
75
75
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
|
76
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-sidekiq/6.
|
|
76
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-sidekiq/6.6.0
|
|
77
77
|
rdoc_options: []
|
|
78
78
|
require_paths:
|
|
79
79
|
- lib
|