sentry-resque 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 +9 -0
- data/README.md +24 -2
- data/Rakefile +18 -2
- data/gemfiles/ruby-2.7.gemfile.lock +19 -19
- data/gemfiles/ruby-3.0.gemfile.lock +18 -18
- data/gemfiles/ruby-3.1.gemfile.lock +101 -101
- data/gemfiles/ruby-3.2.gemfile.lock +171 -139
- data/gemfiles/ruby-3.3.gemfile.lock +171 -139
- data/gemfiles/ruby-3.4.gemfile.lock +171 -139
- data/gemfiles/ruby-4.0.gemfile.lock +171 -139
- data/gemfiles/ruby-jruby-9.4.14.0.gemfile.lock +105 -105
- data/lib/sentry/resque/active_job_extension.rb +67 -0
- data/lib/sentry/resque/active_job_support/reporter.rb +52 -0
- data/lib/sentry/resque/railtie.rb +28 -0
- data/lib/sentry/resque/version.rb +1 -1
- data/lib/sentry/resque.rb +13 -7
- data/lib/sentry-resque.rb +2 -10
- data/sentry-resque.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-resque (7.
|
|
24
|
+
sentry-resque (7.2.0)
|
|
25
25
|
resque (>= 1.24)
|
|
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,41 +60,41 @@ 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
|
-
activestorage (7.2.
|
|
87
|
-
actionpack (= 7.2.
|
|
88
|
-
activejob (= 7.2.
|
|
89
|
-
activerecord (= 7.2.
|
|
90
|
-
activesupport (= 7.2.
|
|
86
|
+
activestorage (7.2.4)
|
|
87
|
+
actionpack (= 7.2.4)
|
|
88
|
+
activejob (= 7.2.4)
|
|
89
|
+
activerecord (= 7.2.4)
|
|
90
|
+
activesupport (= 7.2.4)
|
|
91
91
|
marcel (~> 1.0)
|
|
92
|
-
activesupport (7.2.
|
|
92
|
+
activesupport (7.2.4)
|
|
93
93
|
base64
|
|
94
94
|
benchmark (>= 0.3)
|
|
95
95
|
bigdecimal
|
|
96
96
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
97
|
-
connection_pool (>= 2.2.5)
|
|
97
|
+
connection_pool (>= 2.2.5, < 3)
|
|
98
98
|
drb
|
|
99
99
|
i18n (>= 1.6, < 2)
|
|
100
100
|
logger (>= 1.4.2)
|
|
@@ -108,8 +108,8 @@ GEM
|
|
|
108
108
|
cgi (0.5.2-java)
|
|
109
109
|
concurrent-ruby (1.3.8)
|
|
110
110
|
connection_pool (2.5.5)
|
|
111
|
-
crass (1.0.
|
|
112
|
-
date (3.
|
|
111
|
+
crass (1.0.8)
|
|
112
|
+
date (3.6.0-java)
|
|
113
113
|
diff-lcs (1.6.2)
|
|
114
114
|
docile (1.4.1)
|
|
115
115
|
drb (2.2.3)
|
|
@@ -125,13 +125,13 @@ GEM
|
|
|
125
125
|
activesupport (>= 6.1)
|
|
126
126
|
i18n (1.15.2)
|
|
127
127
|
concurrent-ruby (~> 1.0)
|
|
128
|
-
io-console (0.9.
|
|
129
|
-
irb (1.
|
|
128
|
+
io-console (0.9.5-java)
|
|
129
|
+
irb (1.19.0)
|
|
130
130
|
pp (>= 0.6.0)
|
|
131
131
|
prism (>= 1.3.0)
|
|
132
132
|
rdoc (>= 4.0.0)
|
|
133
133
|
reline (>= 0.4.2)
|
|
134
|
-
jar-dependencies (0.6.
|
|
134
|
+
jar-dependencies (0.6.2-java)
|
|
135
135
|
logger (1.7.0)
|
|
136
136
|
loofah (2.25.2)
|
|
137
137
|
crass (~> 1.0.2)
|
|
@@ -155,21 +155,21 @@ GEM
|
|
|
155
155
|
net-protocol
|
|
156
156
|
net-protocol (0.4.0)
|
|
157
157
|
timeout
|
|
158
|
-
net-smtp (0.5.
|
|
158
|
+
net-smtp (0.5.2)
|
|
159
159
|
net-protocol
|
|
160
160
|
nio4r (2.7.5-java)
|
|
161
161
|
nokogiri (1.18.10-java)
|
|
162
162
|
racc (~> 1.4)
|
|
163
163
|
pp (0.6.4)
|
|
164
164
|
prettyprint
|
|
165
|
-
prettyprint (0.2.
|
|
166
|
-
prism (1.
|
|
165
|
+
prettyprint (0.2.1)
|
|
166
|
+
prism (2.1.0)
|
|
167
167
|
psych (5.5.0-java)
|
|
168
168
|
date
|
|
169
169
|
jar-dependencies (>= 0.1.7)
|
|
170
170
|
raabro (1.5.0)
|
|
171
171
|
racc (1.8.1-java)
|
|
172
|
-
rack (3.2.
|
|
172
|
+
rack (3.2.8)
|
|
173
173
|
rack-protection (4.2.1)
|
|
174
174
|
base64 (>= 0.1.0)
|
|
175
175
|
logger (>= 1.6.0)
|
|
@@ -177,24 +177,24 @@ GEM
|
|
|
177
177
|
rack-session (2.1.2)
|
|
178
178
|
base64 (>= 0.1.0)
|
|
179
179
|
rack (>= 3.0.0)
|
|
180
|
-
rack-test (2.
|
|
180
|
+
rack-test (2.3.0)
|
|
181
181
|
rack (>= 1.3)
|
|
182
182
|
rackup (2.3.1)
|
|
183
183
|
rack (>= 3)
|
|
184
|
-
rails (7.2.
|
|
185
|
-
actioncable (= 7.2.
|
|
186
|
-
actionmailbox (= 7.2.
|
|
187
|
-
actionmailer (= 7.2.
|
|
188
|
-
actionpack (= 7.2.
|
|
189
|
-
actiontext (= 7.2.
|
|
190
|
-
actionview (= 7.2.
|
|
191
|
-
activejob (= 7.2.
|
|
192
|
-
activemodel (= 7.2.
|
|
193
|
-
activerecord (= 7.2.
|
|
194
|
-
activestorage (= 7.2.
|
|
195
|
-
activesupport (= 7.2.
|
|
184
|
+
rails (7.2.4)
|
|
185
|
+
actioncable (= 7.2.4)
|
|
186
|
+
actionmailbox (= 7.2.4)
|
|
187
|
+
actionmailer (= 7.2.4)
|
|
188
|
+
actionpack (= 7.2.4)
|
|
189
|
+
actiontext (= 7.2.4)
|
|
190
|
+
actionview (= 7.2.4)
|
|
191
|
+
activejob (= 7.2.4)
|
|
192
|
+
activemodel (= 7.2.4)
|
|
193
|
+
activerecord (= 7.2.4)
|
|
194
|
+
activestorage (= 7.2.4)
|
|
195
|
+
activesupport (= 7.2.4)
|
|
196
196
|
bundler (>= 1.15.0)
|
|
197
|
-
railties (= 7.2.
|
|
197
|
+
railties (= 7.2.4)
|
|
198
198
|
rails-dom-testing (2.3.0)
|
|
199
199
|
activesupport (>= 5.0.0)
|
|
200
200
|
minitest
|
|
@@ -202,9 +202,9 @@ GEM
|
|
|
202
202
|
rails-html-sanitizer (1.7.1)
|
|
203
203
|
loofah (~> 2.25, >= 2.25.2)
|
|
204
204
|
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)
|
|
205
|
-
railties (7.2.
|
|
206
|
-
actionpack (= 7.2.
|
|
207
|
-
activesupport (= 7.2.
|
|
205
|
+
railties (7.2.4)
|
|
206
|
+
actionpack (= 7.2.4)
|
|
207
|
+
activesupport (= 7.2.4)
|
|
208
208
|
cgi
|
|
209
209
|
irb (~> 1.13)
|
|
210
210
|
rackup (>= 1.0.0)
|
|
@@ -219,7 +219,7 @@ GEM
|
|
|
219
219
|
tsort
|
|
220
220
|
redis (5.4.1)
|
|
221
221
|
redis-client (>= 0.22.0)
|
|
222
|
-
redis-client (0.
|
|
222
|
+
redis-client (0.31.0)
|
|
223
223
|
connection_pool
|
|
224
224
|
redis-namespace (1.11.0)
|
|
225
225
|
redis (>= 4)
|
|
@@ -243,17 +243,17 @@ GEM
|
|
|
243
243
|
rspec-core (~> 3.13.0)
|
|
244
244
|
rspec-expectations (~> 3.13.0)
|
|
245
245
|
rspec-mocks (~> 3.13.0)
|
|
246
|
-
rspec-core (3.13.
|
|
246
|
+
rspec-core (3.13.7)
|
|
247
247
|
rspec-support (~> 3.13.0)
|
|
248
|
-
rspec-expectations (3.13.
|
|
248
|
+
rspec-expectations (3.13.6)
|
|
249
249
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
250
250
|
rspec-support (~> 3.13.0)
|
|
251
|
-
rspec-mocks (3.13.
|
|
251
|
+
rspec-mocks (3.13.9)
|
|
252
252
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
253
253
|
rspec-support (~> 3.13.0)
|
|
254
254
|
rspec-retry (0.6.2)
|
|
255
255
|
rspec-core (> 3.3)
|
|
256
|
-
rspec-support (3.13.
|
|
256
|
+
rspec-support (3.13.8)
|
|
257
257
|
rufus-scheduler (3.9.2)
|
|
258
258
|
fugit (~> 1.1, >= 1.11.1)
|
|
259
259
|
securerandom (0.4.1)
|
|
@@ -307,17 +307,17 @@ DEPENDENCIES
|
|
|
307
307
|
simplecov-cobertura (~> 3.0)
|
|
308
308
|
|
|
309
309
|
CHECKSUMS
|
|
310
|
-
actioncable (7.2.
|
|
311
|
-
actionmailbox (7.2.
|
|
312
|
-
actionmailer (7.2.
|
|
313
|
-
actionpack (7.2.
|
|
314
|
-
actiontext (7.2.
|
|
315
|
-
actionview (7.2.
|
|
316
|
-
activejob (7.2.
|
|
317
|
-
activemodel (7.2.
|
|
318
|
-
activerecord (7.2.
|
|
319
|
-
activestorage (7.2.
|
|
320
|
-
activesupport (7.2.
|
|
310
|
+
actioncable (7.2.4) sha256=053e939f728eac986ff5321e42ba5b884de6ab64a392af0e8d45866d0d3fb63a
|
|
311
|
+
actionmailbox (7.2.4) sha256=92d4d107554eb29cdffce9aaaf41daf07b9e6579d5a0d4cc9b64de6e87eadee9
|
|
312
|
+
actionmailer (7.2.4) sha256=9c58352e79df660aecddb1cdfbe1e6e555169c3328ae15ec06b6eae611de8917
|
|
313
|
+
actionpack (7.2.4) sha256=c7acf80263cf09125e5c4d866abda3536cc941f436e81673f17be11ad407a4eb
|
|
314
|
+
actiontext (7.2.4) sha256=49b0a18a387e983d48fa559ef8aa8d9c37c21399998b59984d87c387d81f3c9c
|
|
315
|
+
actionview (7.2.4) sha256=6005a3427881b2e8f509a5f7ed894e66f256410f734f7a227d01c4d3d9cb06a2
|
|
316
|
+
activejob (7.2.4) sha256=a83376234173c67e2d7b155132b79750776215ab16f1a0a2f20ad59a50a7054b
|
|
317
|
+
activemodel (7.2.4) sha256=c6a2f2290fdf8728b596fba1fc528e65852c6e015ccc385ddf0f93c455588773
|
|
318
|
+
activerecord (7.2.4) sha256=b3549deb6a4c469e0cb652194cf566b6010f1f1796404b4213d8b47469d411e5
|
|
319
|
+
activestorage (7.2.4) sha256=cc82c0d1c50cfcd52197067a61ca16e5b3716c0ac2eba666b30449ba3532bddc
|
|
320
|
+
activesupport (7.2.4) sha256=b97027b31e111675dba67b86edcd589acc25a0dddf8eecacca18d33a703a0788
|
|
321
321
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
322
322
|
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
|
|
323
323
|
bigdecimal (4.1.3-java) sha256=9a6a1fa67723a27ab1b3a6d5526322d8c82170af03199da7c915b8d9a1770532
|
|
@@ -325,8 +325,8 @@ CHECKSUMS
|
|
|
325
325
|
cgi (0.5.2-java) sha256=08bbfe06e10e771d36f10db6c1dfb81727ea2a25c3dbcd28d890a1794414a73d
|
|
326
326
|
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
327
327
|
connection_pool (2.5.5) sha256=e54ff92855753df1fd7c59fa04a398833355f27dd14c074f8c83a05f72a716ad
|
|
328
|
-
crass (1.0.
|
|
329
|
-
date (3.
|
|
328
|
+
crass (1.0.8) sha256=7a0145c7a2c59f8e7923b3a69ce819c444823a00a5127d805298fea13be24efe
|
|
329
|
+
date (3.6.0-java) sha256=7276986bbacc2357d0c6d41a863be5906e2f745ea2ccb47eed84bf761f6a7806
|
|
330
330
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
331
331
|
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
|
|
332
332
|
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
@@ -336,9 +336,9 @@ CHECKSUMS
|
|
|
336
336
|
fugit (1.14.0) sha256=e311a9cc85a54bb67649df45060e721282a1e2c8ebad40e41874a3a7d576f37e
|
|
337
337
|
globalid (1.4.0) sha256=037f12fbf1d9d7a014d501c2d5c77356fd4ddd96d7a7991d6700bba96706f427
|
|
338
338
|
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
339
|
-
io-console (0.9.
|
|
340
|
-
irb (1.
|
|
341
|
-
jar-dependencies (0.6.
|
|
339
|
+
io-console (0.9.5-java) sha256=34b74ec7d8e39a526fb9a82aa34853257a1baa08f56c5cd5d37ec6be2a5e6000
|
|
340
|
+
irb (1.19.0) sha256=55ee56acbdd6c9fe06a2e6909f46a24e5c41f45f16906bab04e8049cf46f1d27
|
|
341
|
+
jar-dependencies (0.6.2-java) sha256=3196d7c5b63a221e0593c260c449e3a36dbbde733ec34260109ebd50546cb8e5
|
|
342
342
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
343
343
|
loofah (2.25.2) sha256=2007f746959ac65552456e04b433e83deb22759ab38c838b4445c70e43425918
|
|
344
344
|
mail (2.9.1) sha256=06574eca475253d6c18145dd70af80d0eb970182d55053497c5f4d797ea160e8
|
|
@@ -351,28 +351,28 @@ CHECKSUMS
|
|
|
351
351
|
net-imap (0.5.15) sha256=f64dc7f0b456d6a1b62007ead055994034f039f4aa6ff614e35f0b93395c0614
|
|
352
352
|
net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3
|
|
353
353
|
net-protocol (0.4.0) sha256=f9f90c8c6f64794a45160bf422177a336db12809de3beeeaa26b88fcd2e8c853
|
|
354
|
-
net-smtp (0.5.
|
|
354
|
+
net-smtp (0.5.2) sha256=35103cc04d6b2d94632f9928ede07483c24b70b9c0db1f231fea43909b678f3c
|
|
355
355
|
nio4r (2.7.5-java) sha256=d14779d2a9b012ec0148a53344fbb2ed2a3c4d90c5dd923bf281135ab983b2c9
|
|
356
356
|
nokogiri (1.18.10-java) sha256=cd431a09c45d84a2f870ba0b7e8f571199b3727d530f2b4888a73639f76510b5
|
|
357
357
|
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
|
358
|
-
prettyprint (0.2.
|
|
359
|
-
prism (1.
|
|
358
|
+
prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
|
|
359
|
+
prism (2.1.0) sha256=1c0a7c6dea0e93183390fb123f007564dbe663198e2f86ad87204151147601f3
|
|
360
360
|
psych (5.5.0-java) sha256=3b7cf3684c44d049c3dee87ec4118ec9cd6ac714cbdcfba386997f96dbbd36ab
|
|
361
361
|
raabro (1.5.0) sha256=3f998a7bc84f9c84df3ab580634d2e0a5bda4f0841168d56035f529c9877440a
|
|
362
362
|
racc (1.8.1-java) sha256=54f2e6d1e1b91c154013277d986f52a90e5ececbe91465d29172e49342732b98
|
|
363
|
-
rack (3.2.
|
|
363
|
+
rack (3.2.8) sha256=1fecc85e463ebc7a2a945fff829ffcd549babeb1556384796fad946c28dc4ec7
|
|
364
364
|
rack-protection (4.2.1) sha256=cf6e2842df8c55f5e4d1a4be015e603e19e9bc3a7178bae58949ccbb58558bac
|
|
365
365
|
rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
|
|
366
|
-
rack-test (2.
|
|
366
|
+
rack-test (2.3.0) sha256=b118d177cc002c572fc1b6fd8d19c9ed5881a36e8d6f689f9e618f9f861241e8
|
|
367
367
|
rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
|
|
368
|
-
rails (7.2.
|
|
368
|
+
rails (7.2.4) sha256=28b530f2db9dc112ce896fd93a00863d7e9ee98c4e7dbd02ea5b7647cb63738e
|
|
369
369
|
rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
|
|
370
370
|
rails-html-sanitizer (1.7.1) sha256=e797a7c9b01e567307e317c576b49ab4168017e63eea4dba9ce3cb587e2f22c2
|
|
371
|
-
railties (7.2.
|
|
371
|
+
railties (7.2.4) sha256=e4b754edc7b42c9f3d6cc3048832efe634d727aa59093a03bf8a78096917f121
|
|
372
372
|
rake (12.3.3) sha256=f7694adb4fe638da35452300cee6c545e9c377a0e3190018ac04d590b3c26ab3
|
|
373
373
|
rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
|
|
374
374
|
redis (5.4.1) sha256=b5e675b57ad22b15c9bcc765d5ac26f60b675408af916d31527af9bd5a81faae
|
|
375
|
-
redis-client (0.
|
|
375
|
+
redis-client (0.31.0) sha256=6820cb2a21e6795a823141f50fd25e655de2b8dc8ff833b43509a27b0263fd75
|
|
376
376
|
redis-namespace (1.11.0) sha256=e91a1aa2b2d888b6dea1d4ab8d39e1ae6fac3426161feb9d91dd5cca598a2239
|
|
377
377
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
378
378
|
resque (2.7.0) sha256=685fdc8889b0a649183ff9b23c96817f42a1e1d47c0ea64c77c5e1dd69b961b0
|
|
@@ -380,16 +380,16 @@ CHECKSUMS
|
|
|
380
380
|
resque-scheduler (4.11.0) sha256=4e8bf3acdccc2cfe02141d2717fc03dc6e0cdd887c0d6c0fa92b394aa70f32a1
|
|
381
381
|
rexml (3.4.1) sha256=c74527a9a0a04b4ec31dbe0dc4ed6004b960af943d8db42e539edde3a871abca
|
|
382
382
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
383
|
-
rspec-core (3.13.
|
|
384
|
-
rspec-expectations (3.13.
|
|
385
|
-
rspec-mocks (3.13.
|
|
383
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
384
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
385
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
386
386
|
rspec-retry (0.6.2) sha256=6101ba23a38809811ae3484acde4ab481c54d846ac66d5037ccb40131a60d858
|
|
387
|
-
rspec-support (3.13.
|
|
387
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
388
388
|
rufus-scheduler (3.9.2) sha256=55fa9e4db0ff69d7f38c804f17baba0c9bce5cba39984ae3c5cf6c039d1323b9
|
|
389
389
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
390
|
-
sentry-rails (7.
|
|
391
|
-
sentry-resque (7.
|
|
392
|
-
sentry-ruby (7.
|
|
390
|
+
sentry-rails (7.2.0)
|
|
391
|
+
sentry-resque (7.2.0)
|
|
392
|
+
sentry-ruby (7.2.0)
|
|
393
393
|
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
394
394
|
simplecov-cobertura (3.2.0) sha256=70d702658677fcb20e5aceb6915ccf8bc62ff2ccd38b62b3ad5c9db5c0888740
|
|
395
395
|
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "sentry/rails/active_job_extension"
|
|
4
|
+
require "sentry/resque/active_job_support/reporter"
|
|
5
|
+
|
|
6
|
+
module Sentry
|
|
7
|
+
module Resque
|
|
8
|
+
# The extension sentry-rails uses for ActiveJob jobs on Resque when the app
|
|
9
|
+
# lets sentry-rails report them. It keeps sentry-resque's context, tags,
|
|
10
|
+
# origin and integration, so these jobs look the same in Sentry in either mode.
|
|
11
|
+
#
|
|
12
|
+
# @see ActiveJobSupport
|
|
13
|
+
class ActiveJobExtension < Sentry::Rails::ActiveJobExtension
|
|
14
|
+
SPAN_ORIGIN = "auto.queue.resque"
|
|
15
|
+
MESSAGING_SYSTEM = "resque"
|
|
16
|
+
|
|
17
|
+
def initialize(name: :resque, integration: Sentry::Resque, origin: SPAN_ORIGIN, **dependencies)
|
|
18
|
+
super(name: name, integration: integration, origin: origin, **dependencies)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# Adds sentry-resque's `Active-Job` context and `resque.queue` tag.
|
|
22
|
+
#
|
|
23
|
+
# @see Sentry::JobExtensions::Extension#scope_data
|
|
24
|
+
def scope_data(job:, **)
|
|
25
|
+
job_data = job._sentry_job_data || {}
|
|
26
|
+
context = {
|
|
27
|
+
job_class: job.class.name,
|
|
28
|
+
job_id: job.job_id,
|
|
29
|
+
executions: job_data["executions"],
|
|
30
|
+
exception_executions: job_data["exception_executions"],
|
|
31
|
+
locale: job_data["locale"],
|
|
32
|
+
enqueued_at: job_data["enqueued_at"],
|
|
33
|
+
queue: job.queue_name
|
|
34
|
+
}
|
|
35
|
+
context[:arguments] = job_data["arguments"] if Sentry.configuration.data_collection.queues
|
|
36
|
+
|
|
37
|
+
{ contexts: { "Active-Job": context }, tags: { "resque.queue" => job.queue_name } }
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Describes the Resque message being processed.
|
|
41
|
+
#
|
|
42
|
+
# @see Sentry::JobExtensions::Extension#messaging_data
|
|
43
|
+
def messaging_data(job:, **)
|
|
44
|
+
job_data = job._sentry_job_data
|
|
45
|
+
data = {
|
|
46
|
+
system: MESSAGING_SYSTEM,
|
|
47
|
+
message_id: job.job_id,
|
|
48
|
+
destination: job.queue_name,
|
|
49
|
+
retry_count: (job.executions.to_i if job.respond_to?(:executions)),
|
|
50
|
+
receive_latency: Sentry::Utils::Latency.milliseconds_since(job_data&.[]("enqueued_at"))
|
|
51
|
+
}
|
|
52
|
+
data[:body_size] = body_size(job_data) if Sentry.get_current_scope.get_span&.sampled
|
|
53
|
+
data.compact
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
private
|
|
57
|
+
|
|
58
|
+
def body_size(job_data)
|
|
59
|
+
::Resque.encode("class" => ActiveJobSupport::ACTIVE_JOB_WRAPPER, "args" => [job_data]).bytesize if job_data
|
|
60
|
+
rescue StandardError
|
|
61
|
+
nil
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
Sentry::Rails.register_active_job_extension(:resque, ActiveJobExtension.new)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentry
|
|
4
|
+
module Resque
|
|
5
|
+
# Support for ActiveJob jobs run through Resque, which reports them in one of
|
|
6
|
+
# two modes:
|
|
7
|
+
#
|
|
8
|
+
# - By default, sentry-rails skips the Resque adapter and sentry-resque
|
|
9
|
+
# reports ActiveJob jobs like other Resque jobs.
|
|
10
|
+
# - When the app removes the Resque adapter from
|
|
11
|
+
# `config.rails.skippable_job_adapters`, sentry-rails reports them through
|
|
12
|
+
# {Sentry::Resque::ActiveJobExtension}, and {ActiveJobSupport::Reporter}
|
|
13
|
+
# keeps sentry-resque from reporting them a second time.
|
|
14
|
+
module ActiveJobSupport
|
|
15
|
+
ACTIVE_JOB_ADAPTER = "ActiveJob::QueueAdapters::ResqueAdapter"
|
|
16
|
+
ACTIVE_JOB_WRAPPER = "ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper"
|
|
17
|
+
|
|
18
|
+
# Returns whether the Resque payload wraps an ActiveJob job.
|
|
19
|
+
#
|
|
20
|
+
# @param payload [Hash]
|
|
21
|
+
# @return [Boolean]
|
|
22
|
+
def self.handles?(payload)
|
|
23
|
+
payload.is_a?(Hash) && payload["class"].to_s == ACTIVE_JOB_WRAPPER
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Prepended to {SentryReporter} when sentry-rails reports ActiveJob jobs on
|
|
27
|
+
# Resque. For those jobs it only captures errors sentry-rails didn't, such as
|
|
28
|
+
# ones raised before the job runs.
|
|
29
|
+
module Reporter
|
|
30
|
+
def record(queue, worker, payload, &block)
|
|
31
|
+
return super unless ActiveJobSupport.handles?(payload)
|
|
32
|
+
|
|
33
|
+
capture_unreported_exception(queue, worker, payload, &block)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
private
|
|
37
|
+
|
|
38
|
+
def capture_unreported_exception(queue, worker, payload)
|
|
39
|
+
yield
|
|
40
|
+
rescue Exception => exception # rubocop:disable Lint/RescueException
|
|
41
|
+
unless Sentry.exception_captured?(exception)
|
|
42
|
+
Sentry.with_scope do |scope|
|
|
43
|
+
apply_job_scope(scope, queue, worker, payload)
|
|
44
|
+
::Sentry::Resque.capture_exception(exception, hint: { background: false })
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
raise
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "sentry/resque/active_job_support/reporter"
|
|
4
|
+
|
|
5
|
+
module Sentry
|
|
6
|
+
module Resque
|
|
7
|
+
# Sets up how ActiveJob jobs on Resque are reported in Rails apps.
|
|
8
|
+
#
|
|
9
|
+
# @see ActiveJobSupport
|
|
10
|
+
class Railtie < ::Rails::Railtie
|
|
11
|
+
initializer "sentry.resque.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/resque/active_job_extension"
|
|
24
|
+
SentryReporter.singleton_class.prepend(ActiveJobSupport::Reporter)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
data/lib/sentry/resque.rb
CHANGED
|
@@ -21,12 +21,7 @@ module Sentry
|
|
|
21
21
|
def record(queue, worker, payload, &block)
|
|
22
22
|
Sentry.with_scope do |scope|
|
|
23
23
|
begin
|
|
24
|
-
|
|
25
|
-
scope.set_contexts(**contexts)
|
|
26
|
-
scope.set_tags("resque.queue" => queue)
|
|
27
|
-
|
|
28
|
-
name = contexts.dig(:"Active-Job", :job_class) || contexts.dig(:"Resque", :job_class)
|
|
29
|
-
scope.set_transaction_name(name, source: :task)
|
|
24
|
+
apply_job_scope(scope, queue, worker, payload)
|
|
30
25
|
transaction = Sentry.start_transaction(
|
|
31
26
|
name: scope.transaction_name,
|
|
32
27
|
source: scope.transaction_source,
|
|
@@ -75,7 +70,9 @@ module Sentry
|
|
|
75
70
|
}
|
|
76
71
|
end
|
|
77
72
|
|
|
78
|
-
context
|
|
73
|
+
return context if Sentry.configuration.data_collection.queues
|
|
74
|
+
|
|
75
|
+
context.transform_values { |job_context| job_context.reject { |key, _| key == :arguments } }
|
|
79
76
|
end
|
|
80
77
|
|
|
81
78
|
def finish_transaction(transaction, status)
|
|
@@ -87,6 +84,15 @@ module Sentry
|
|
|
87
84
|
|
|
88
85
|
private
|
|
89
86
|
|
|
87
|
+
def apply_job_scope(scope, queue, worker, payload)
|
|
88
|
+
contexts = generate_contexts(queue, worker, payload)
|
|
89
|
+
scope.set_contexts(**contexts)
|
|
90
|
+
scope.set_tags("resque.queue" => queue)
|
|
91
|
+
|
|
92
|
+
name = contexts.dig(:"Active-Job", :job_class) || contexts.dig(:"Resque", :job_class)
|
|
93
|
+
scope.set_transaction_name(name, source: :task)
|
|
94
|
+
end
|
|
95
|
+
|
|
90
96
|
def raise_if_retries_remain(klass, exception)
|
|
91
97
|
return unless Sentry.configuration.resque.report_after_job_retries &&
|
|
92
98
|
defined?(::Resque::Plugins::Retry) == "constant"
|
data/lib/sentry-resque.rb
CHANGED
|
@@ -12,15 +12,7 @@ module Sentry
|
|
|
12
12
|
extend Sentry::Integrable
|
|
13
13
|
|
|
14
14
|
register_integration name: "resque", version: Sentry::Resque::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::ResqueAdapter"
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
15
|
end
|
|
26
16
|
end
|
|
17
|
+
|
|
18
|
+
require "sentry/resque/railtie" if defined?(::Rails::Railtie)
|
data/sentry-resque.gemspec
CHANGED
|
@@ -6,7 +6,8 @@ Gem::Specification.new do |spec|
|
|
|
6
6
|
spec.name = "sentry-resque"
|
|
7
7
|
spec.version = Sentry::Resque::VERSION
|
|
8
8
|
spec.authors = ["Sentry Team"]
|
|
9
|
-
spec.
|
|
9
|
+
spec.summary = "A gem that provides Resque integration for the Sentry error logger (maintenance mode)"
|
|
10
|
+
spec.description = "Maintenance-mode Resque integration for the Sentry error logger. ActiveJob users should use the ActiveJob integration in sentry-rails, which sentry-resque enriches with Resque 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 "resque", ">= 1.24"
|
|
35
36
|
end
|