sentry-delayed_job 7.1.0 → 7.3.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/Gemfile +6 -0
- data/README.md +24 -2
- data/Rakefile +18 -2
- data/gemfiles/ruby-2.7.gemfile.lock +18 -18
- data/gemfiles/ruby-3.0.gemfile.lock +17 -17
- data/gemfiles/ruby-3.1.gemfile.lock +99 -99
- data/gemfiles/ruby-3.2.gemfile.lock +160 -150
- data/gemfiles/ruby-3.3.gemfile.lock +160 -150
- data/gemfiles/ruby-3.4.gemfile.lock +160 -150
- data/gemfiles/ruby-4.0.gemfile.lock +160 -150
- data/gemfiles/ruby-jruby-9.4.14.0.gemfile.lock +103 -103
- data/lib/sentry/delayed_job/active_job_extension.rb +33 -0
- data/lib/sentry/delayed_job/active_job_support/plugin.rb +76 -0
- data/lib/sentry/delayed_job/plugin.rb +44 -23
- data/lib/sentry/delayed_job/railtie.rb +28 -0
- data/lib/sentry/delayed_job/version.rb +1 -1
- data/lib/sentry-delayed_job.rb +2 -10
- data/sentry-delayed_job.gemspec +3 -2
- metadata +16 -10
|
@@ -6,14 +6,14 @@ GIT
|
|
|
6
6
|
PATH
|
|
7
7
|
remote: ../../sentry-rails
|
|
8
8
|
specs:
|
|
9
|
-
sentry-rails (7.
|
|
9
|
+
sentry-rails (7.2.0)
|
|
10
10
|
railties (>= 5.2.0)
|
|
11
|
-
sentry-ruby (~> 7.
|
|
11
|
+
sentry-ruby (~> 7.2.0)
|
|
12
12
|
|
|
13
13
|
PATH
|
|
14
14
|
remote: ../../sentry-ruby
|
|
15
15
|
specs:
|
|
16
|
-
sentry-ruby (7.
|
|
16
|
+
sentry-ruby (7.2.0)
|
|
17
17
|
bigdecimal
|
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
19
19
|
logger
|
|
@@ -21,36 +21,36 @@ PATH
|
|
|
21
21
|
PATH
|
|
22
22
|
remote: ..
|
|
23
23
|
specs:
|
|
24
|
-
sentry-delayed_job (7.
|
|
24
|
+
sentry-delayed_job (7.2.0)
|
|
25
25
|
delayed_job (>= 4.0)
|
|
26
|
-
sentry-ruby (~> 7.
|
|
26
|
+
sentry-ruby (~> 7.2.0)
|
|
27
27
|
|
|
28
28
|
GEM
|
|
29
29
|
remote: https://rubygems.org/
|
|
30
30
|
specs:
|
|
31
|
-
actioncable (7.2.
|
|
32
|
-
actionpack (= 7.2.
|
|
33
|
-
activesupport (= 7.2.
|
|
31
|
+
actioncable (7.2.4)
|
|
32
|
+
actionpack (= 7.2.4)
|
|
33
|
+
activesupport (= 7.2.4)
|
|
34
34
|
nio4r (~> 2.0)
|
|
35
35
|
websocket-driver (>= 0.6.1)
|
|
36
36
|
zeitwerk (~> 2.6)
|
|
37
|
-
actionmailbox (7.2.
|
|
38
|
-
actionpack (= 7.2.
|
|
39
|
-
activejob (= 7.2.
|
|
40
|
-
activerecord (= 7.2.
|
|
41
|
-
activestorage (= 7.2.
|
|
42
|
-
activesupport (= 7.2.
|
|
37
|
+
actionmailbox (7.2.4)
|
|
38
|
+
actionpack (= 7.2.4)
|
|
39
|
+
activejob (= 7.2.4)
|
|
40
|
+
activerecord (= 7.2.4)
|
|
41
|
+
activestorage (= 7.2.4)
|
|
42
|
+
activesupport (= 7.2.4)
|
|
43
43
|
mail (>= 2.8.0)
|
|
44
|
-
actionmailer (7.2.
|
|
45
|
-
actionpack (= 7.2.
|
|
46
|
-
actionview (= 7.2.
|
|
47
|
-
activejob (= 7.2.
|
|
48
|
-
activesupport (= 7.2.
|
|
44
|
+
actionmailer (7.2.4)
|
|
45
|
+
actionpack (= 7.2.4)
|
|
46
|
+
actionview (= 7.2.4)
|
|
47
|
+
activejob (= 7.2.4)
|
|
48
|
+
activesupport (= 7.2.4)
|
|
49
49
|
mail (>= 2.8.0)
|
|
50
50
|
rails-dom-testing (~> 2.2)
|
|
51
|
-
actionpack (7.2.
|
|
52
|
-
actionview (= 7.2.
|
|
53
|
-
activesupport (= 7.2.
|
|
51
|
+
actionpack (7.2.4)
|
|
52
|
+
actionview (= 7.2.4)
|
|
53
|
+
activesupport (= 7.2.4)
|
|
54
54
|
cgi
|
|
55
55
|
nokogiri (>= 1.8.5)
|
|
56
56
|
racc
|
|
@@ -60,46 +60,46 @@ GEM
|
|
|
60
60
|
rails-dom-testing (~> 2.2)
|
|
61
61
|
rails-html-sanitizer (~> 1.6)
|
|
62
62
|
useragent (~> 0.16)
|
|
63
|
-
actiontext (7.2.
|
|
64
|
-
actionpack (= 7.2.
|
|
65
|
-
activerecord (= 7.2.
|
|
66
|
-
activestorage (= 7.2.
|
|
67
|
-
activesupport (= 7.2.
|
|
63
|
+
actiontext (7.2.4)
|
|
64
|
+
actionpack (= 7.2.4)
|
|
65
|
+
activerecord (= 7.2.4)
|
|
66
|
+
activestorage (= 7.2.4)
|
|
67
|
+
activesupport (= 7.2.4)
|
|
68
68
|
globalid (>= 0.6.0)
|
|
69
69
|
nokogiri (>= 1.8.5)
|
|
70
|
-
actionview (7.2.
|
|
71
|
-
activesupport (= 7.2.
|
|
70
|
+
actionview (7.2.4)
|
|
71
|
+
activesupport (= 7.2.4)
|
|
72
72
|
builder (~> 3.1)
|
|
73
73
|
cgi
|
|
74
74
|
erubi (~> 1.11)
|
|
75
75
|
rails-dom-testing (~> 2.2)
|
|
76
76
|
rails-html-sanitizer (~> 1.6)
|
|
77
|
-
activejob (7.2.
|
|
78
|
-
activesupport (= 7.2.
|
|
77
|
+
activejob (7.2.4)
|
|
78
|
+
activesupport (= 7.2.4)
|
|
79
79
|
globalid (>= 0.3.6)
|
|
80
|
-
activemodel (7.2.
|
|
81
|
-
activesupport (= 7.2.
|
|
82
|
-
activerecord (7.2.
|
|
83
|
-
activemodel (= 7.2.
|
|
84
|
-
activesupport (= 7.2.
|
|
80
|
+
activemodel (7.2.4)
|
|
81
|
+
activesupport (= 7.2.4)
|
|
82
|
+
activerecord (7.2.4)
|
|
83
|
+
activemodel (= 7.2.4)
|
|
84
|
+
activesupport (= 7.2.4)
|
|
85
85
|
timeout (>= 0.4.0)
|
|
86
86
|
activerecord-jdbc-adapter (72.1-java)
|
|
87
87
|
activerecord (~> 7.2.2)
|
|
88
88
|
activerecord-jdbcmysql-adapter (72.1-java)
|
|
89
89
|
activerecord-jdbc-adapter (= 72.1)
|
|
90
90
|
jdbc-mysql (>= 5.1.36, < 9)
|
|
91
|
-
activestorage (7.2.
|
|
92
|
-
actionpack (= 7.2.
|
|
93
|
-
activejob (= 7.2.
|
|
94
|
-
activerecord (= 7.2.
|
|
95
|
-
activesupport (= 7.2.
|
|
91
|
+
activestorage (7.2.4)
|
|
92
|
+
actionpack (= 7.2.4)
|
|
93
|
+
activejob (= 7.2.4)
|
|
94
|
+
activerecord (= 7.2.4)
|
|
95
|
+
activesupport (= 7.2.4)
|
|
96
96
|
marcel (~> 1.0)
|
|
97
|
-
activesupport (7.2.
|
|
97
|
+
activesupport (7.2.4)
|
|
98
98
|
base64
|
|
99
99
|
benchmark (>= 0.3)
|
|
100
100
|
bigdecimal
|
|
101
101
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
102
|
-
connection_pool (>= 2.2.5)
|
|
102
|
+
connection_pool (>= 2.2.5, < 3)
|
|
103
103
|
drb
|
|
104
104
|
i18n (>= 1.6, < 2)
|
|
105
105
|
logger (>= 1.4.2)
|
|
@@ -113,8 +113,8 @@ GEM
|
|
|
113
113
|
cgi (0.5.2-java)
|
|
114
114
|
concurrent-ruby (1.3.8)
|
|
115
115
|
connection_pool (2.5.5)
|
|
116
|
-
crass (1.0.
|
|
117
|
-
date (3.
|
|
116
|
+
crass (1.0.8)
|
|
117
|
+
date (3.6.0-java)
|
|
118
118
|
delayed_job (4.2.0)
|
|
119
119
|
activesupport (>= 3.0, < 9.0)
|
|
120
120
|
benchmark
|
|
@@ -132,13 +132,13 @@ GEM
|
|
|
132
132
|
activesupport (>= 6.1)
|
|
133
133
|
i18n (1.15.2)
|
|
134
134
|
concurrent-ruby (~> 1.0)
|
|
135
|
-
io-console (0.9.
|
|
136
|
-
irb (1.
|
|
135
|
+
io-console (0.9.5-java)
|
|
136
|
+
irb (1.19.0)
|
|
137
137
|
pp (>= 0.6.0)
|
|
138
138
|
prism (>= 1.3.0)
|
|
139
139
|
rdoc (>= 4.0.0)
|
|
140
140
|
reline (>= 0.4.2)
|
|
141
|
-
jar-dependencies (0.6.
|
|
141
|
+
jar-dependencies (0.6.2-java)
|
|
142
142
|
jdbc-mysql (8.4.0.1)
|
|
143
143
|
jdbc-sqlite3 (3.46.1.1)
|
|
144
144
|
logger (1.7.0)
|
|
@@ -161,41 +161,41 @@ GEM
|
|
|
161
161
|
net-protocol
|
|
162
162
|
net-protocol (0.4.0)
|
|
163
163
|
timeout
|
|
164
|
-
net-smtp (0.5.
|
|
164
|
+
net-smtp (0.5.2)
|
|
165
165
|
net-protocol
|
|
166
166
|
nio4r (2.7.5-java)
|
|
167
167
|
nokogiri (1.18.10-java)
|
|
168
168
|
racc (~> 1.4)
|
|
169
169
|
pp (0.6.4)
|
|
170
170
|
prettyprint
|
|
171
|
-
prettyprint (0.2.
|
|
172
|
-
prism (1.
|
|
171
|
+
prettyprint (0.2.1)
|
|
172
|
+
prism (2.1.0)
|
|
173
173
|
psych (5.5.0-java)
|
|
174
174
|
date
|
|
175
175
|
jar-dependencies (>= 0.1.7)
|
|
176
176
|
racc (1.8.1-java)
|
|
177
|
-
rack (3.2.
|
|
177
|
+
rack (3.2.8)
|
|
178
178
|
rack-session (2.1.2)
|
|
179
179
|
base64 (>= 0.1.0)
|
|
180
180
|
rack (>= 3.0.0)
|
|
181
|
-
rack-test (2.
|
|
181
|
+
rack-test (2.3.0)
|
|
182
182
|
rack (>= 1.3)
|
|
183
183
|
rackup (2.3.1)
|
|
184
184
|
rack (>= 3)
|
|
185
|
-
rails (7.2.
|
|
186
|
-
actioncable (= 7.2.
|
|
187
|
-
actionmailbox (= 7.2.
|
|
188
|
-
actionmailer (= 7.2.
|
|
189
|
-
actionpack (= 7.2.
|
|
190
|
-
actiontext (= 7.2.
|
|
191
|
-
actionview (= 7.2.
|
|
192
|
-
activejob (= 7.2.
|
|
193
|
-
activemodel (= 7.2.
|
|
194
|
-
activerecord (= 7.2.
|
|
195
|
-
activestorage (= 7.2.
|
|
196
|
-
activesupport (= 7.2.
|
|
185
|
+
rails (7.2.4)
|
|
186
|
+
actioncable (= 7.2.4)
|
|
187
|
+
actionmailbox (= 7.2.4)
|
|
188
|
+
actionmailer (= 7.2.4)
|
|
189
|
+
actionpack (= 7.2.4)
|
|
190
|
+
actiontext (= 7.2.4)
|
|
191
|
+
actionview (= 7.2.4)
|
|
192
|
+
activejob (= 7.2.4)
|
|
193
|
+
activemodel (= 7.2.4)
|
|
194
|
+
activerecord (= 7.2.4)
|
|
195
|
+
activestorage (= 7.2.4)
|
|
196
|
+
activesupport (= 7.2.4)
|
|
197
197
|
bundler (>= 1.15.0)
|
|
198
|
-
railties (= 7.2.
|
|
198
|
+
railties (= 7.2.4)
|
|
199
199
|
rails-dom-testing (2.3.0)
|
|
200
200
|
activesupport (>= 5.0.0)
|
|
201
201
|
minitest
|
|
@@ -203,9 +203,9 @@ GEM
|
|
|
203
203
|
rails-html-sanitizer (1.7.1)
|
|
204
204
|
loofah (~> 2.25, >= 2.25.2)
|
|
205
205
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
206
|
-
railties (7.2.
|
|
207
|
-
actionpack (= 7.2.
|
|
208
|
-
activesupport (= 7.2.
|
|
206
|
+
railties (7.2.4)
|
|
207
|
+
actionpack (= 7.2.4)
|
|
208
|
+
activesupport (= 7.2.4)
|
|
209
209
|
cgi
|
|
210
210
|
irb (~> 1.13)
|
|
211
211
|
rackup (>= 1.0.0)
|
|
@@ -225,17 +225,17 @@ GEM
|
|
|
225
225
|
rspec-core (~> 3.13.0)
|
|
226
226
|
rspec-expectations (~> 3.13.0)
|
|
227
227
|
rspec-mocks (~> 3.13.0)
|
|
228
|
-
rspec-core (3.13.
|
|
228
|
+
rspec-core (3.13.7)
|
|
229
229
|
rspec-support (~> 3.13.0)
|
|
230
|
-
rspec-expectations (3.13.
|
|
230
|
+
rspec-expectations (3.13.6)
|
|
231
231
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
232
232
|
rspec-support (~> 3.13.0)
|
|
233
|
-
rspec-mocks (3.13.
|
|
233
|
+
rspec-mocks (3.13.9)
|
|
234
234
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
235
235
|
rspec-support (~> 3.13.0)
|
|
236
236
|
rspec-retry (0.6.2)
|
|
237
237
|
rspec-core (> 3.3)
|
|
238
|
-
rspec-support (3.13.
|
|
238
|
+
rspec-support (3.13.8)
|
|
239
239
|
securerandom (0.4.1)
|
|
240
240
|
simplecov (0.22.0)
|
|
241
241
|
docile (~> 1.1)
|
|
@@ -283,19 +283,19 @@ DEPENDENCIES
|
|
|
283
283
|
sqlite3 (~> 2.2)
|
|
284
284
|
|
|
285
285
|
CHECKSUMS
|
|
286
|
-
actioncable (7.2.
|
|
287
|
-
actionmailbox (7.2.
|
|
288
|
-
actionmailer (7.2.
|
|
289
|
-
actionpack (7.2.
|
|
290
|
-
actiontext (7.2.
|
|
291
|
-
actionview (7.2.
|
|
292
|
-
activejob (7.2.
|
|
293
|
-
activemodel (7.2.
|
|
294
|
-
activerecord (7.2.
|
|
286
|
+
actioncable (7.2.4) sha256=053e939f728eac986ff5321e42ba5b884de6ab64a392af0e8d45866d0d3fb63a
|
|
287
|
+
actionmailbox (7.2.4) sha256=92d4d107554eb29cdffce9aaaf41daf07b9e6579d5a0d4cc9b64de6e87eadee9
|
|
288
|
+
actionmailer (7.2.4) sha256=9c58352e79df660aecddb1cdfbe1e6e555169c3328ae15ec06b6eae611de8917
|
|
289
|
+
actionpack (7.2.4) sha256=c7acf80263cf09125e5c4d866abda3536cc941f436e81673f17be11ad407a4eb
|
|
290
|
+
actiontext (7.2.4) sha256=49b0a18a387e983d48fa559ef8aa8d9c37c21399998b59984d87c387d81f3c9c
|
|
291
|
+
actionview (7.2.4) sha256=6005a3427881b2e8f509a5f7ed894e66f256410f734f7a227d01c4d3d9cb06a2
|
|
292
|
+
activejob (7.2.4) sha256=a83376234173c67e2d7b155132b79750776215ab16f1a0a2f20ad59a50a7054b
|
|
293
|
+
activemodel (7.2.4) sha256=c6a2f2290fdf8728b596fba1fc528e65852c6e015ccc385ddf0f93c455588773
|
|
294
|
+
activerecord (7.2.4) sha256=b3549deb6a4c469e0cb652194cf566b6010f1f1796404b4213d8b47469d411e5
|
|
295
295
|
activerecord-jdbc-adapter (72.1-java) sha256=4487cb4606b5d76913b5abaaf681ef21b7aa9478ed201918f48da6b3f7fcec70
|
|
296
296
|
activerecord-jdbcmysql-adapter (72.1-java) sha256=094d6e074e23668dff143f5c69cda0f0fc29468d9634b3c5e5884a3345e3d166
|
|
297
|
-
activestorage (7.2.
|
|
298
|
-
activesupport (7.2.
|
|
297
|
+
activestorage (7.2.4) sha256=cc82c0d1c50cfcd52197067a61ca16e5b3716c0ac2eba666b30449ba3532bddc
|
|
298
|
+
activesupport (7.2.4) sha256=b97027b31e111675dba67b86edcd589acc25a0dddf8eecacca18d33a703a0788
|
|
299
299
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
300
300
|
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
|
|
301
301
|
bigdecimal (4.1.3-java) sha256=9a6a1fa67723a27ab1b3a6d5526322d8c82170af03199da7c915b8d9a1770532
|
|
@@ -303,8 +303,8 @@ CHECKSUMS
|
|
|
303
303
|
cgi (0.5.2-java) sha256=08bbfe06e10e771d36f10db6c1dfb81727ea2a25c3dbcd28d890a1794414a73d
|
|
304
304
|
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
305
305
|
connection_pool (2.5.5) sha256=e54ff92855753df1fd7c59fa04a398833355f27dd14c074f8c83a05f72a716ad
|
|
306
|
-
crass (1.0.
|
|
307
|
-
date (3.
|
|
306
|
+
crass (1.0.8) sha256=7a0145c7a2c59f8e7923b3a69ce819c444823a00a5127d805298fea13be24efe
|
|
307
|
+
date (3.6.0-java) sha256=7276986bbacc2357d0c6d41a863be5906e2f745ea2ccb47eed84bf761f6a7806
|
|
308
308
|
delayed_job (4.2.0) sha256=51dc1f68bb9084398317884c2178debd38c13a7eb48d8aa4ff4775465d7713ef
|
|
309
309
|
delayed_job_active_record (4.1.11) sha256=64f34a6d50316dd7a7df1daf7c6e04ad888c0e86938762318f6f52522b7c1ba8
|
|
310
310
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
@@ -314,9 +314,9 @@ CHECKSUMS
|
|
|
314
314
|
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
|
|
315
315
|
globalid (1.4.0) sha256=037f12fbf1d9d7a014d501c2d5c77356fd4ddd96d7a7991d6700bba96706f427
|
|
316
316
|
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
317
|
-
io-console (0.9.
|
|
318
|
-
irb (1.
|
|
319
|
-
jar-dependencies (0.6.
|
|
317
|
+
io-console (0.9.5-java) sha256=34b74ec7d8e39a526fb9a82aa34853257a1baa08f56c5cd5d37ec6be2a5e6000
|
|
318
|
+
irb (1.19.0) sha256=55ee56acbdd6c9fe06a2e6909f46a24e5c41f45f16906bab04e8049cf46f1d27
|
|
319
|
+
jar-dependencies (0.6.2-java) sha256=3196d7c5b63a221e0593c260c449e3a36dbbde733ec34260109ebd50546cb8e5
|
|
320
320
|
jdbc-mysql (8.4.0.1) sha256=429cb7999d11c4f46a7153a382b6ac07935a4c10ddc52dd98e2d52b22c17fa13
|
|
321
321
|
jdbc-sqlite3 (3.46.1.1) sha256=2498fea7d37c0d51c6bad1b95ffc909173c014ba6bd36825f37910113d0230cf
|
|
322
322
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
@@ -328,36 +328,36 @@ CHECKSUMS
|
|
|
328
328
|
net-imap (0.5.15) sha256=f64dc7f0b456d6a1b62007ead055994034f039f4aa6ff614e35f0b93395c0614
|
|
329
329
|
net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3
|
|
330
330
|
net-protocol (0.4.0) sha256=f9f90c8c6f64794a45160bf422177a336db12809de3beeeaa26b88fcd2e8c853
|
|
331
|
-
net-smtp (0.5.
|
|
331
|
+
net-smtp (0.5.2) sha256=35103cc04d6b2d94632f9928ede07483c24b70b9c0db1f231fea43909b678f3c
|
|
332
332
|
nio4r (2.7.5-java) sha256=d14779d2a9b012ec0148a53344fbb2ed2a3c4d90c5dd923bf281135ab983b2c9
|
|
333
333
|
nokogiri (1.18.10-java) sha256=cd431a09c45d84a2f870ba0b7e8f571199b3727d530f2b4888a73639f76510b5
|
|
334
334
|
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
|
335
|
-
prettyprint (0.2.
|
|
336
|
-
prism (1.
|
|
335
|
+
prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
|
|
336
|
+
prism (2.1.0) sha256=1c0a7c6dea0e93183390fb123f007564dbe663198e2f86ad87204151147601f3
|
|
337
337
|
psych (5.5.0-java) sha256=3b7cf3684c44d049c3dee87ec4118ec9cd6ac714cbdcfba386997f96dbbd36ab
|
|
338
338
|
racc (1.8.1-java) sha256=54f2e6d1e1b91c154013277d986f52a90e5ececbe91465d29172e49342732b98
|
|
339
|
-
rack (3.2.
|
|
339
|
+
rack (3.2.8) sha256=1fecc85e463ebc7a2a945fff829ffcd549babeb1556384796fad946c28dc4ec7
|
|
340
340
|
rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
|
|
341
|
-
rack-test (2.
|
|
341
|
+
rack-test (2.3.0) sha256=b118d177cc002c572fc1b6fd8d19c9ed5881a36e8d6f689f9e618f9f861241e8
|
|
342
342
|
rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
|
|
343
|
-
rails (7.2.
|
|
343
|
+
rails (7.2.4) sha256=28b530f2db9dc112ce896fd93a00863d7e9ee98c4e7dbd02ea5b7647cb63738e
|
|
344
344
|
rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
|
|
345
345
|
rails-html-sanitizer (1.7.1) sha256=e797a7c9b01e567307e317c576b49ab4168017e63eea4dba9ce3cb587e2f22c2
|
|
346
|
-
railties (7.2.
|
|
346
|
+
railties (7.2.4) sha256=e4b754edc7b42c9f3d6cc3048832efe634d727aa59093a03bf8a78096917f121
|
|
347
347
|
rake (12.3.3) sha256=f7694adb4fe638da35452300cee6c545e9c377a0e3190018ac04d590b3c26ab3
|
|
348
348
|
rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
|
|
349
349
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
350
350
|
rexml (3.4.1) sha256=c74527a9a0a04b4ec31dbe0dc4ed6004b960af943d8db42e539edde3a871abca
|
|
351
351
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
352
|
-
rspec-core (3.13.
|
|
353
|
-
rspec-expectations (3.13.
|
|
354
|
-
rspec-mocks (3.13.
|
|
352
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
353
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
354
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
355
355
|
rspec-retry (0.6.2) sha256=6101ba23a38809811ae3484acde4ab481c54d846ac66d5037ccb40131a60d858
|
|
356
|
-
rspec-support (3.13.
|
|
356
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
357
357
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
358
|
-
sentry-delayed_job (7.
|
|
359
|
-
sentry-rails (7.
|
|
360
|
-
sentry-ruby (7.
|
|
358
|
+
sentry-delayed_job (7.2.0)
|
|
359
|
+
sentry-rails (7.2.0)
|
|
360
|
+
sentry-ruby (7.2.0)
|
|
361
361
|
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
362
362
|
simplecov-cobertura (3.2.0) sha256=70d702658677fcb20e5aceb6915ccf8bc62ff2ccd38b62b3ad5c9db5c0888740
|
|
363
363
|
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "sentry/rails/active_job_extension"
|
|
4
|
+
require "sentry/delayed_job/active_job_support/plugin"
|
|
5
|
+
|
|
6
|
+
module Sentry
|
|
7
|
+
module DelayedJob
|
|
8
|
+
# The extension sentry-rails uses for ActiveJob jobs on delayed_job when the
|
|
9
|
+
# app lets sentry-rails report them. It keeps sentry-delayed_job's context,
|
|
10
|
+
# tags, origin and integration, so these jobs look the same in Sentry in
|
|
11
|
+
# either mode.
|
|
12
|
+
#
|
|
13
|
+
# @see ActiveJobSupport
|
|
14
|
+
class ActiveJobExtension < Sentry::Rails::ActiveJobExtension
|
|
15
|
+
def initialize(name: :delayed_job, integration: Sentry::DelayedJob, origin: Plugin::SPAN_ORIGIN, **dependencies)
|
|
16
|
+
super(name: name, integration: integration, origin: origin, **dependencies)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Adds sentry-delayed_job's `Active-Job` context and `delayed_job.*` tags.
|
|
20
|
+
#
|
|
21
|
+
# @see Sentry::JobExtensions::Extension#scope_data
|
|
22
|
+
def scope_data(job:, **)
|
|
23
|
+
tags = { "delayed_job.queue" => job.queue_name }
|
|
24
|
+
record_id = job._sentry&.[](ActiveJobSupport::RECORD_ID_KEY)
|
|
25
|
+
tags["delayed_job.id"] = record_id if record_id
|
|
26
|
+
|
|
27
|
+
{ contexts: { Plugin::ACTIVE_JOB_CONTEXT_KEY => ActiveJobSupport.active_job_context(job._sentry_job_data) }, tags: tags }
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
Sentry::Rails.register_active_job_extension(:delayed_job, ActiveJobExtension.new)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentry
|
|
4
|
+
module DelayedJob
|
|
5
|
+
# Support for ActiveJob jobs run through delayed_job, which reports them in
|
|
6
|
+
# one of two modes:
|
|
7
|
+
#
|
|
8
|
+
# - By default, sentry-rails skips the delayed_job adapter and
|
|
9
|
+
# sentry-delayed_job reports ActiveJob jobs like other delayed_job jobs.
|
|
10
|
+
# - When the app removes the delayed_job adapter from
|
|
11
|
+
# `config.rails.skippable_job_adapters`, sentry-rails reports them through
|
|
12
|
+
# {Sentry::DelayedJob::ActiveJobExtension}, and {ActiveJobSupport::Plugin}
|
|
13
|
+
# keeps sentry-delayed_job from reporting them a second time.
|
|
14
|
+
module ActiveJobSupport
|
|
15
|
+
ACTIVE_JOB_ADAPTER = "ActiveJob::QueueAdapters::DelayedJobAdapter"
|
|
16
|
+
ACTIVE_JOB_WRAPPER = "ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper"
|
|
17
|
+
RECORD_ID_KEY = "delayed_job_id"
|
|
18
|
+
|
|
19
|
+
# Returns the `Active-Job` context sentry-delayed_job reports for the job's
|
|
20
|
+
# serialized data.
|
|
21
|
+
#
|
|
22
|
+
# @param job_data [Hash, nil]
|
|
23
|
+
# @return [Hash]
|
|
24
|
+
def self.active_job_context(job_data)
|
|
25
|
+
context = (job_data || {}).reject { |key, _value| key == Sentry::Rails::ActiveJobExtensions::SENTRY_PAYLOAD_KEY }
|
|
26
|
+
context = context.reject { |key, _value| key == "arguments" } unless Sentry.configuration.data_collection.queues
|
|
27
|
+
context.transform_keys(&:to_sym)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns whether the delayed_job record wraps an ActiveJob job.
|
|
31
|
+
#
|
|
32
|
+
# @param job [Delayed::Job]
|
|
33
|
+
# @return [Boolean]
|
|
34
|
+
def self.handles?(job)
|
|
35
|
+
job.payload_object.class.name == ACTIVE_JOB_WRAPPER
|
|
36
|
+
rescue ::Delayed::DeserializationError
|
|
37
|
+
false
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Prepended to {Sentry::DelayedJob::Plugin} when sentry-rails reports
|
|
41
|
+
# ActiveJob jobs on delayed_job. For those jobs it passes the record id on to
|
|
42
|
+
# sentry-rails and only captures errors sentry-rails didn't, such as ones
|
|
43
|
+
# raised before the job runs.
|
|
44
|
+
module Plugin
|
|
45
|
+
def record(job, *args, &block)
|
|
46
|
+
return super unless Sentry.initialized? && ActiveJobSupport.handles?(job)
|
|
47
|
+
|
|
48
|
+
hand_over_record_id(job)
|
|
49
|
+
capture_unreported_exception(job) { block.call(job, *args) }
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
private
|
|
53
|
+
|
|
54
|
+
def hand_over_record_id(job)
|
|
55
|
+
job_data = job.payload_object.job_data
|
|
56
|
+
sentry_data = (job_data[Sentry::Rails::ActiveJobExtensions::SENTRY_PAYLOAD_KEY] ||= {})
|
|
57
|
+
sentry_data[RECORD_ID_KEY] = job.id.to_s
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def capture_unreported_exception(job)
|
|
61
|
+
yield
|
|
62
|
+
rescue Exception => exception # rubocop:disable Lint/RescueException
|
|
63
|
+
unless Sentry.exception_captured?(exception)
|
|
64
|
+
Sentry.with_scope do |scope|
|
|
65
|
+
contexts = generate_contexts(job)
|
|
66
|
+
contexts[DelayedJob::Plugin::ACTIVE_JOB_CONTEXT_KEY]&.delete(Sentry::Rails::ActiveJobExtensions::SENTRY_PAYLOAD_KEY.to_sym)
|
|
67
|
+
apply_job_scope(scope, job, contexts)
|
|
68
|
+
capture_exception(exception, job)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
raise
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -17,34 +17,53 @@ module Sentry
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
lifecycle.around(:invoke_job) do |job, *args, &block|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
20
|
+
record(job, *args, &block)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Runs the job in its own scope and transaction, capturing its errors.
|
|
25
|
+
#
|
|
26
|
+
# @param job [Delayed::Job]
|
|
27
|
+
# @return [Object] the block's result
|
|
28
|
+
def self.record(job, *args, &block)
|
|
29
|
+
env = extract_trace_data(job)
|
|
30
|
+
return block.call(job, *args) unless Sentry.initialized?
|
|
31
|
+
|
|
32
|
+
Sentry.with_scope do |scope|
|
|
33
|
+
contexts = apply_job_scope(scope, job)
|
|
34
|
+
|
|
35
|
+
transaction = start_transaction(scope, env, contexts)
|
|
36
|
+
scope.set_span(transaction) if transaction
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
block.call(job, *args)
|
|
40
|
+
|
|
41
|
+
finish_transaction(transaction, 200)
|
|
42
|
+
rescue Exception => e
|
|
43
|
+
capture_exception(e, job)
|
|
44
|
+
finish_transaction(transaction, 500)
|
|
45
|
+
raise
|
|
42
46
|
end
|
|
43
47
|
end
|
|
44
48
|
end
|
|
45
49
|
|
|
50
|
+
# Applies the job's transaction name, contexts and tags to the scope.
|
|
51
|
+
#
|
|
52
|
+
# @param scope [Scope]
|
|
53
|
+
# @param job [Delayed::Job]
|
|
54
|
+
# @param contexts [Hash]
|
|
55
|
+
# @return [Hash] the applied contexts
|
|
56
|
+
def self.apply_job_scope(scope, job, contexts = generate_contexts(job))
|
|
57
|
+
name = contexts.dig(ACTIVE_JOB_CONTEXT_KEY, :job_class) || contexts.dig(DELAYED_JOB_CONTEXT_KEY, :job_class)
|
|
58
|
+
scope.set_transaction_name(name, source: :task)
|
|
59
|
+
scope.set_contexts(**contexts)
|
|
60
|
+
scope.set_tags("delayed_job.queue" => job.queue, "delayed_job.id" => job.id.to_s)
|
|
61
|
+
contexts
|
|
62
|
+
end
|
|
63
|
+
|
|
46
64
|
def self.generate_contexts(job)
|
|
47
65
|
context = {}
|
|
66
|
+
collect_arguments = Sentry.configuration.data_collection.queues
|
|
48
67
|
|
|
49
68
|
context[DELAYED_JOB_CONTEXT_KEY] = {
|
|
50
69
|
id: job.id.to_s,
|
|
@@ -56,14 +75,16 @@ module Sentry
|
|
|
56
75
|
queue: job.queue,
|
|
57
76
|
created_at: job.created_at,
|
|
58
77
|
last_error: job.last_error&.byteslice(0..1000),
|
|
59
|
-
handler: job.handler&.byteslice(0..1000),
|
|
60
78
|
job_class: compute_job_class(job.payload_object)
|
|
61
79
|
}
|
|
80
|
+
context[DELAYED_JOB_CONTEXT_KEY][:handler] = job.handler&.byteslice(0..1000) if collect_arguments
|
|
62
81
|
|
|
63
82
|
if job.payload_object.respond_to?(:job_data)
|
|
64
83
|
context[ACTIVE_JOB_CONTEXT_KEY] = {}
|
|
65
84
|
|
|
66
85
|
job.payload_object.job_data.each do |key, value|
|
|
86
|
+
next if key.to_s == "arguments" && !collect_arguments
|
|
87
|
+
|
|
67
88
|
context[ACTIVE_JOB_CONTEXT_KEY][key.to_sym] = value
|
|
68
89
|
end
|
|
69
90
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "sentry/delayed_job/active_job_support/plugin"
|
|
4
|
+
|
|
5
|
+
module Sentry
|
|
6
|
+
module DelayedJob
|
|
7
|
+
# Sets up how ActiveJob jobs on delayed_job are reported in Rails apps.
|
|
8
|
+
#
|
|
9
|
+
# @see ActiveJobSupport
|
|
10
|
+
class Railtie < ::Rails::Railtie
|
|
11
|
+
initializer "sentry.delayed_job.skippable_job_adapter", before: :load_environment_config do
|
|
12
|
+
next unless defined?(::Sentry::Rails)
|
|
13
|
+
|
|
14
|
+
Sentry::Configuration.after(:initialize) { rails.skippable_job_adapters << ActiveJobSupport::ACTIVE_JOB_ADAPTER }
|
|
15
|
+
# The callback only covers configurations created from here on, so an app that
|
|
16
|
+
# initialized Sentry earlier gets the adapter added to its current configuration.
|
|
17
|
+
Sentry.configuration.rails.skippable_job_adapters << ActiveJobSupport::ACTIVE_JOB_ADAPTER if Sentry.initialized?
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
config.after_initialize do
|
|
21
|
+
next unless defined?(::Sentry::Rails) && Sentry::Rails.active_job_owns_adapter?(ActiveJobSupport::ACTIVE_JOB_ADAPTER)
|
|
22
|
+
|
|
23
|
+
require "sentry/delayed_job/active_job_extension"
|
|
24
|
+
Plugin.singleton_class.prepend(ActiveJobSupport::Plugin)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
data/lib/sentry-delayed_job.rb
CHANGED
|
@@ -12,15 +12,7 @@ module Sentry
|
|
|
12
12
|
extend Sentry::Integrable
|
|
13
13
|
|
|
14
14
|
register_integration name: "delayed_job", version: Sentry::DelayedJob::VERSION
|
|
15
|
-
|
|
16
|
-
if defined?(::Rails::Railtie)
|
|
17
|
-
class Railtie < ::Rails::Railtie
|
|
18
|
-
config.after_initialize do
|
|
19
|
-
next unless Sentry.initialized? && defined?(::Sentry::Rails)
|
|
20
|
-
|
|
21
|
-
Sentry.configuration.rails.skippable_job_adapters << "ActiveJob::QueueAdapters::DelayedJobAdapter"
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
15
|
end
|
|
26
16
|
end
|
|
17
|
+
|
|
18
|
+
require "sentry/delayed_job/railtie" if defined?(::Rails::Railtie)
|
data/sentry-delayed_job.gemspec
CHANGED
|
@@ -6,7 +6,8 @@ Gem::Specification.new do |spec|
|
|
|
6
6
|
spec.name = "sentry-delayed_job"
|
|
7
7
|
spec.version = Sentry::DelayedJob::VERSION
|
|
8
8
|
spec.authors = ["Sentry Team"]
|
|
9
|
-
spec.
|
|
9
|
+
spec.summary = "A gem that provides DelayedJob integration for the Sentry error logger (maintenance mode)"
|
|
10
|
+
spec.description = "Maintenance-mode DelayedJob integration for the Sentry error logger. ActiveJob users should use the ActiveJob integration in sentry-rails, which sentry-delayed_job enriches with delayed_job data."
|
|
10
11
|
spec.email = "accounts@sentry.io"
|
|
11
12
|
spec.license = 'MIT'
|
|
12
13
|
|
|
@@ -30,6 +31,6 @@ Gem::Specification.new do |spec|
|
|
|
30
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
31
32
|
spec.require_paths = ["lib"]
|
|
32
33
|
|
|
33
|
-
spec.add_dependency "sentry-ruby", "~> 7.
|
|
34
|
+
spec.add_dependency "sentry-ruby", "~> 7.3.0"
|
|
34
35
|
spec.add_dependency "delayed_job", ">= 4.0"
|
|
35
36
|
end
|