sentry-sidekiq 5.22.1 → 5.22.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a2727ca8d0ac4e9631eeba0a98fa96408a23a60a4a7655c967fe534b2985301
|
4
|
+
data.tar.gz: 05b7580e2d546dc7818c6b2ef38bdfa36d7fa7bd8b8f56c41700ff6720bd6f01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6b18efb7b8d7cb8fe73bd946515ac1d877b956b14f1cbc5a6bc6d3b771e6f1de08d35eb99898d510d0d0dfc55e9ea5cbbf976e30ff6f9d437e8fafb11712893
|
7
|
+
data.tar.gz: 1f7ce2173002237b2052774db549fe431b79da1ac4046d4d6e2c4d1e664492e59242490c7600737eb702b7fcbd69d530f8bf4ff6a07f3c860897eaa2ea32f06e
|
@@ -11,7 +11,10 @@ module Sentry
|
|
11
11
|
end
|
12
12
|
|
13
13
|
module Sidekiq
|
14
|
-
IGNORE_DEFAULT = [
|
14
|
+
IGNORE_DEFAULT = [
|
15
|
+
"Sidekiq::JobRetry::Skip",
|
16
|
+
"Sidekiq::JobRetry::Handled"
|
17
|
+
]
|
15
18
|
|
16
19
|
class Configuration
|
17
20
|
# Set this option to true if you want Sentry to only capture the last job
|
@@ -31,6 +31,19 @@ module Sentry
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
# Check if the retry count is below the attempt_threshold
|
35
|
+
attempt_threshold = context.dig(:job, "attempt_threshold")
|
36
|
+
if attempt_threshold && retryable?(context)
|
37
|
+
attempt_threshold = attempt_threshold.to_i
|
38
|
+
retry_count = context.dig(:job, "retry_count")
|
39
|
+
# attempt 1 - retry_count is nil
|
40
|
+
# attempt 2 - this is your first retry so retry_count is 0
|
41
|
+
# attempt 3 - you have retried once, retry_count is 1
|
42
|
+
attempt = retry_count.nil? ? 1 : retry_count.to_i + 2
|
43
|
+
|
44
|
+
return if attempt < attempt_threshold
|
45
|
+
end
|
46
|
+
|
34
47
|
Sentry::Sidekiq.capture_exception(
|
35
48
|
ex,
|
36
49
|
contexts: { sidekiq: context_filter.filtered },
|
@@ -38,16 +38,14 @@ module Sentry
|
|
38
38
|
monitor_config =
|
39
39
|
case interval_type
|
40
40
|
when "cron"
|
41
|
-
#
|
42
|
-
|
43
|
-
timezone = parsed_cron.timezone
|
41
|
+
# Split schedule into cron and timezone parts (if timezone exists)
|
42
|
+
cron_parts = schedule.strip.split(" ")
|
44
43
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
cron_without_timezone
|
50
|
-
Sentry::Cron::MonitorConfig.from_crontab(cron_without_timezone, timezone: timezone.name)
|
44
|
+
if cron_parts.length > 5
|
45
|
+
timezone = cron_parts.pop
|
46
|
+
cron_without_timezone = cron_parts.join(" ")
|
47
|
+
|
48
|
+
Sentry::Cron::MonitorConfig.from_crontab(cron_without_timezone, timezone: timezone)
|
51
49
|
else
|
52
50
|
Sentry::Cron::MonitorConfig.from_crontab(schedule)
|
53
51
|
end
|
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", "~> 5.22.
|
33
|
+
spec.add_dependency "sentry-ruby", "~> 5.22.3"
|
34
34
|
spec.add_dependency "sidekiq", ">= 3.0"
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.22.
|
4
|
+
version: 5.22.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: sentry-ruby
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.22.
|
18
|
+
version: 5.22.3
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.22.
|
25
|
+
version: 5.22.3
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: sidekiq
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,16 +68,15 @@ files:
|
|
69
68
|
- lib/sentry/sidekiq/sentry_context_middleware.rb
|
70
69
|
- lib/sentry/sidekiq/version.rb
|
71
70
|
- sentry-sidekiq.gemspec
|
72
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/5.22.
|
71
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/5.22.3/sentry-sidekiq
|
73
72
|
licenses:
|
74
73
|
- MIT
|
75
74
|
metadata:
|
76
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.22.
|
77
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.22.
|
78
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.22.
|
75
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.22.3/sentry-sidekiq
|
76
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.22.3/sentry-sidekiq
|
77
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.22.3/CHANGELOG.md
|
79
78
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
80
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-sidekiq/5.22.
|
81
|
-
post_install_message:
|
79
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-sidekiq/5.22.3
|
82
80
|
rdoc_options: []
|
83
81
|
require_paths:
|
84
82
|
- lib
|
@@ -93,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
91
|
- !ruby/object:Gem::Version
|
94
92
|
version: '0'
|
95
93
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
97
|
-
signing_key:
|
94
|
+
rubygems_version: 3.6.2
|
98
95
|
specification_version: 4
|
99
96
|
summary: A gem that provides Sidekiq integration for the Sentry error logger
|
100
97
|
test_files: []
|