sentry-rails 7.2.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 +5 -0
- data/README.md +5 -1
- data/gemfiles/ruby-2.7_rails-5.2.0.gemfile.lock +12 -12
- data/gemfiles/ruby-2.7_rails-6.0.0.gemfile.lock +12 -12
- data/gemfiles/ruby-2.7_rails-6.1.0.gemfile.lock +12 -12
- data/gemfiles/ruby-2.7_rails-7.0.0.gemfile.lock +12 -12
- data/gemfiles/ruby-2.7_rails-7.1.0.gemfile.lock +12 -12
- data/gemfiles/ruby-3.0_rails-6.1.0.gemfile.lock +27 -13
- data/gemfiles/ruby-3.0_rails-7.0.0.gemfile.lock +27 -13
- data/gemfiles/ruby-3.0_rails-7.1.0.gemfile.lock +27 -13
- data/gemfiles/ruby-3.1_rails-6.1.0.gemfile.lock +48 -24
- data/gemfiles/ruby-3.1_rails-7.0.0.gemfile.lock +48 -24
- data/gemfiles/ruby-3.1_rails-7.1.0.gemfile.lock +48 -24
- data/gemfiles/ruby-3.1_rails-7.2.0.gemfile.lock +48 -24
- data/gemfiles/ruby-3.2_rails-6.1.0.gemfile.lock +78 -54
- data/gemfiles/ruby-3.2_rails-7.0.0.gemfile.lock +78 -54
- data/gemfiles/ruby-3.2_rails-7.1.0.gemfile.lock +80 -56
- data/gemfiles/ruby-3.2_rails-7.2.0.gemfile.lock +77 -53
- data/gemfiles/ruby-3.2_rails-8.0.0.gemfile.lock +149 -125
- data/gemfiles/ruby-3.3_rails-6.1.0.gemfile.lock +78 -54
- data/gemfiles/ruby-3.3_rails-7.0.0.gemfile.lock +78 -54
- data/gemfiles/ruby-3.3_rails-7.1.0.gemfile.lock +80 -56
- data/gemfiles/ruby-3.3_rails-7.2.0.gemfile.lock +77 -53
- data/gemfiles/ruby-3.3_rails-8.0.0.gemfile.lock +149 -125
- data/gemfiles/ruby-3.4_rails-7.1.0.gemfile.lock +62 -46
- data/gemfiles/ruby-3.4_rails-7.2.0.gemfile.lock +59 -43
- data/gemfiles/ruby-3.4_rails-8.0.0.gemfile.lock +131 -115
- data/gemfiles/ruby-3.4_rails-8.1.3.gemfile.lock +131 -115
- data/gemfiles/ruby-4.0_rails-6.1.0.gemfile.lock +60 -44
- data/gemfiles/ruby-4.0_rails-7.0.0.gemfile.lock +60 -44
- data/gemfiles/ruby-4.0_rails-7.1.0.gemfile.lock +62 -46
- data/gemfiles/ruby-4.0_rails-8.0.0.gemfile.lock +131 -115
- data/gemfiles/ruby-4.0_rails-8.1.3.gemfile.lock +131 -115
- data/gemfiles/ruby-jruby-9.4.14.0_rails-6.1.0.gemfile.lock +25 -25
- data/gemfiles/ruby-jruby-9.4.14.0_rails-7.0.0.gemfile.lock +25 -25
- data/gemfiles/ruby-jruby-9.4.14.0_rails-7.1.0.gemfile.lock +25 -25
- data/lib/sentry/rails/active_job.rb +45 -186
- data/lib/sentry/rails/active_job_extension.rb +196 -0
- data/lib/sentry/rails/configuration.rb +6 -0
- data/lib/sentry/rails/good_job_cron.rb +152 -0
- data/lib/sentry/rails/solid_queue_recurring.rb +13 -12
- data/lib/sentry/rails/version.rb +1 -1
- data/lib/sentry/rails.rb +46 -0
- data/sentry-rails.gemspec +1 -1
- metadata +10 -9
- data/bin/test_old +0 -389
|
@@ -6,7 +6,7 @@ GIT
|
|
|
6
6
|
PATH
|
|
7
7
|
remote: ../../sentry-ruby
|
|
8
8
|
specs:
|
|
9
|
-
sentry-ruby (7.
|
|
9
|
+
sentry-ruby (7.2.0)
|
|
10
10
|
bigdecimal
|
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
12
12
|
logger
|
|
@@ -14,9 +14,9 @@ PATH
|
|
|
14
14
|
PATH
|
|
15
15
|
remote: ..
|
|
16
16
|
specs:
|
|
17
|
-
sentry-rails (7.
|
|
17
|
+
sentry-rails (7.2.0)
|
|
18
18
|
railties (>= 5.2.0)
|
|
19
|
-
sentry-ruby (~> 7.
|
|
19
|
+
sentry-ruby (~> 7.2.0)
|
|
20
20
|
|
|
21
21
|
GEM
|
|
22
22
|
remote: https://rubygems.org/
|
|
@@ -124,13 +124,13 @@ GEM
|
|
|
124
124
|
activesupport (>= 6.1)
|
|
125
125
|
i18n (1.15.2)
|
|
126
126
|
concurrent-ruby (~> 1.0)
|
|
127
|
-
io-console (0.9.
|
|
128
|
-
irb (1.
|
|
127
|
+
io-console (0.9.5-java)
|
|
128
|
+
irb (1.19.0)
|
|
129
129
|
pp (>= 0.6.0)
|
|
130
130
|
prism (>= 1.3.0)
|
|
131
131
|
rdoc (>= 4.0.0)
|
|
132
132
|
reline (>= 0.4.2)
|
|
133
|
-
jar-dependencies (0.6.
|
|
133
|
+
jar-dependencies (0.6.2-java)
|
|
134
134
|
jdbc-mysql (8.4.0.1)
|
|
135
135
|
jdbc-sqlite3 (3.46.1.1)
|
|
136
136
|
logger (1.7.0)
|
|
@@ -166,12 +166,12 @@ GEM
|
|
|
166
166
|
pp (0.6.4)
|
|
167
167
|
prettyprint
|
|
168
168
|
prettyprint (0.2.1)
|
|
169
|
-
prism (2.
|
|
169
|
+
prism (2.1.0)
|
|
170
170
|
psych (5.5.0-java)
|
|
171
171
|
date
|
|
172
172
|
jar-dependencies (>= 0.1.7)
|
|
173
173
|
racc (1.8.1-java)
|
|
174
|
-
rack (2.2.
|
|
174
|
+
rack (2.2.25)
|
|
175
175
|
rack-test (2.3.0)
|
|
176
176
|
rack (>= 1.3)
|
|
177
177
|
rails (7.0.10)
|
|
@@ -214,12 +214,12 @@ GEM
|
|
|
214
214
|
rspec-core (~> 3.13.0)
|
|
215
215
|
rspec-expectations (~> 3.13.0)
|
|
216
216
|
rspec-mocks (~> 3.13.0)
|
|
217
|
-
rspec-core (3.13.
|
|
217
|
+
rspec-core (3.13.7)
|
|
218
218
|
rspec-support (~> 3.13.0)
|
|
219
|
-
rspec-expectations (3.13.
|
|
219
|
+
rspec-expectations (3.13.6)
|
|
220
220
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
221
221
|
rspec-support (~> 3.13.0)
|
|
222
|
-
rspec-mocks (3.13.
|
|
222
|
+
rspec-mocks (3.13.9)
|
|
223
223
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
224
224
|
rspec-support (~> 3.13.0)
|
|
225
225
|
rspec-rails (6.1.5)
|
|
@@ -232,9 +232,9 @@ GEM
|
|
|
232
232
|
rspec-support (~> 3.13)
|
|
233
233
|
rspec-retry (0.6.2)
|
|
234
234
|
rspec-core (> 3.3)
|
|
235
|
-
rspec-support (3.13.
|
|
235
|
+
rspec-support (3.13.8)
|
|
236
236
|
securerandom (0.4.1)
|
|
237
|
-
sequel (5.
|
|
237
|
+
sequel (5.110.0)
|
|
238
238
|
bigdecimal
|
|
239
239
|
simplecov (0.22.0)
|
|
240
240
|
docile (~> 1.1)
|
|
@@ -326,9 +326,9 @@ CHECKSUMS
|
|
|
326
326
|
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
|
|
327
327
|
globalid (1.4.0) sha256=037f12fbf1d9d7a014d501c2d5c77356fd4ddd96d7a7991d6700bba96706f427
|
|
328
328
|
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
329
|
-
io-console (0.9.
|
|
330
|
-
irb (1.
|
|
331
|
-
jar-dependencies (0.6.
|
|
329
|
+
io-console (0.9.5-java) sha256=34b74ec7d8e39a526fb9a82aa34853257a1baa08f56c5cd5d37ec6be2a5e6000
|
|
330
|
+
irb (1.19.0) sha256=55ee56acbdd6c9fe06a2e6909f46a24e5c41f45f16906bab04e8049cf46f1d27
|
|
331
|
+
jar-dependencies (0.6.2-java) sha256=3196d7c5b63a221e0593c260c449e3a36dbbde733ec34260109ebd50546cb8e5
|
|
332
332
|
jdbc-mysql (8.4.0.1) sha256=429cb7999d11c4f46a7153a382b6ac07935a4c10ddc52dd98e2d52b22c17fa13
|
|
333
333
|
jdbc-sqlite3 (3.46.1.1) sha256=2498fea7d37c0d51c6bad1b95ffc909173c014ba6bd36825f37910113d0230cf
|
|
334
334
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
@@ -349,10 +349,10 @@ CHECKSUMS
|
|
|
349
349
|
nokogiri (1.18.10-java) sha256=cd431a09c45d84a2f870ba0b7e8f571199b3727d530f2b4888a73639f76510b5
|
|
350
350
|
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
|
351
351
|
prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
|
|
352
|
-
prism (2.
|
|
352
|
+
prism (2.1.0) sha256=1c0a7c6dea0e93183390fb123f007564dbe663198e2f86ad87204151147601f3
|
|
353
353
|
psych (5.5.0-java) sha256=3b7cf3684c44d049c3dee87ec4118ec9cd6ac714cbdcfba386997f96dbbd36ab
|
|
354
354
|
racc (1.8.1-java) sha256=54f2e6d1e1b91c154013277d986f52a90e5ececbe91465d29172e49342732b98
|
|
355
|
-
rack (2.2.
|
|
355
|
+
rack (2.2.25) sha256=a5b3cd8f2df29c36ede21aa797c21e643f06792fae7487926102e06abe6da0b8
|
|
356
356
|
rack-test (2.3.0) sha256=b118d177cc002c572fc1b6fd8d19c9ed5881a36e8d6f689f9e618f9f861241e8
|
|
357
357
|
rails (7.0.10) sha256=866eb2c53d3184543fdb770d7ea308e4ee518063226a9e176229f3c7a9537c25
|
|
358
358
|
rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
|
|
@@ -363,16 +363,16 @@ CHECKSUMS
|
|
|
363
363
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
364
364
|
rexml (3.4.1) sha256=c74527a9a0a04b4ec31dbe0dc4ed6004b960af943d8db42e539edde3a871abca
|
|
365
365
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
366
|
-
rspec-core (3.13.
|
|
367
|
-
rspec-expectations (3.13.
|
|
368
|
-
rspec-mocks (3.13.
|
|
366
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
367
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
368
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
369
369
|
rspec-rails (6.1.5) sha256=d11afce893ceb6e2c3c11db280f83dee6d0120d150228cef6b989d37c7394c4b
|
|
370
370
|
rspec-retry (0.6.2) sha256=6101ba23a38809811ae3484acde4ab481c54d846ac66d5037ccb40131a60d858
|
|
371
|
-
rspec-support (3.13.
|
|
371
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
372
372
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
373
|
-
sentry-rails (7.
|
|
374
|
-
sentry-ruby (7.
|
|
375
|
-
sequel (5.
|
|
373
|
+
sentry-rails (7.2.0)
|
|
374
|
+
sentry-ruby (7.2.0)
|
|
375
|
+
sequel (5.110.0) sha256=c316335b352adb4109bb02ade237b1a6dbd493493def34542ce05893f62138ae
|
|
376
376
|
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
377
377
|
simplecov-cobertura (3.2.0) sha256=70d702658677fcb20e5aceb6915ccf8bc62ff2ccd38b62b3ad5c9db5c0888740
|
|
378
378
|
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
|
@@ -6,7 +6,7 @@ GIT
|
|
|
6
6
|
PATH
|
|
7
7
|
remote: ../../sentry-ruby
|
|
8
8
|
specs:
|
|
9
|
-
sentry-ruby (7.
|
|
9
|
+
sentry-ruby (7.2.0)
|
|
10
10
|
bigdecimal
|
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
12
12
|
logger
|
|
@@ -14,9 +14,9 @@ PATH
|
|
|
14
14
|
PATH
|
|
15
15
|
remote: ..
|
|
16
16
|
specs:
|
|
17
|
-
sentry-rails (7.
|
|
17
|
+
sentry-rails (7.2.0)
|
|
18
18
|
railties (>= 5.2.0)
|
|
19
|
-
sentry-ruby (~> 7.
|
|
19
|
+
sentry-ruby (~> 7.2.0)
|
|
20
20
|
|
|
21
21
|
GEM
|
|
22
22
|
remote: https://rubygems.org/
|
|
@@ -136,13 +136,13 @@ GEM
|
|
|
136
136
|
activesupport (>= 6.1)
|
|
137
137
|
i18n (1.15.2)
|
|
138
138
|
concurrent-ruby (~> 1.0)
|
|
139
|
-
io-console (0.9.
|
|
140
|
-
irb (1.
|
|
139
|
+
io-console (0.9.5-java)
|
|
140
|
+
irb (1.19.0)
|
|
141
141
|
pp (>= 0.6.0)
|
|
142
142
|
prism (>= 1.3.0)
|
|
143
143
|
rdoc (>= 4.0.0)
|
|
144
144
|
reline (>= 0.4.2)
|
|
145
|
-
jar-dependencies (0.6.
|
|
145
|
+
jar-dependencies (0.6.2-java)
|
|
146
146
|
jdbc-mysql (8.4.0.1)
|
|
147
147
|
jdbc-sqlite3 (3.46.1.1)
|
|
148
148
|
json (2.21.2-java)
|
|
@@ -178,12 +178,12 @@ GEM
|
|
|
178
178
|
pp (0.6.4)
|
|
179
179
|
prettyprint
|
|
180
180
|
prettyprint (0.2.1)
|
|
181
|
-
prism (2.
|
|
181
|
+
prism (2.1.0)
|
|
182
182
|
psych (4.0.6-java)
|
|
183
183
|
jar-dependencies (>= 0.1.7)
|
|
184
184
|
raabro (1.5.0)
|
|
185
185
|
racc (1.8.1-java)
|
|
186
|
-
rack (3.2.
|
|
186
|
+
rack (3.2.8)
|
|
187
187
|
rack-session (2.1.2)
|
|
188
188
|
base64 (>= 0.1.0)
|
|
189
189
|
rack (>= 3.0.0)
|
|
@@ -234,12 +234,12 @@ GEM
|
|
|
234
234
|
rspec-core (~> 3.13.0)
|
|
235
235
|
rspec-expectations (~> 3.13.0)
|
|
236
236
|
rspec-mocks (~> 3.13.0)
|
|
237
|
-
rspec-core (3.13.
|
|
237
|
+
rspec-core (3.13.7)
|
|
238
238
|
rspec-support (~> 3.13.0)
|
|
239
|
-
rspec-expectations (3.13.
|
|
239
|
+
rspec-expectations (3.13.6)
|
|
240
240
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
241
241
|
rspec-support (~> 3.13.0)
|
|
242
|
-
rspec-mocks (3.13.
|
|
242
|
+
rspec-mocks (3.13.9)
|
|
243
243
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
244
244
|
rspec-support (~> 3.13.0)
|
|
245
245
|
rspec-rails (7.1.1)
|
|
@@ -252,9 +252,9 @@ GEM
|
|
|
252
252
|
rspec-support (~> 3.13)
|
|
253
253
|
rspec-retry (0.6.2)
|
|
254
254
|
rspec-core (> 3.3)
|
|
255
|
-
rspec-support (3.13.
|
|
255
|
+
rspec-support (3.13.8)
|
|
256
256
|
securerandom (0.4.1)
|
|
257
|
-
sequel (5.
|
|
257
|
+
sequel (5.110.0)
|
|
258
258
|
bigdecimal
|
|
259
259
|
simplecov (0.22.0)
|
|
260
260
|
docile (~> 1.1)
|
|
@@ -359,9 +359,9 @@ CHECKSUMS
|
|
|
359
359
|
fugit (1.14.0) sha256=e311a9cc85a54bb67649df45060e721282a1e2c8ebad40e41874a3a7d576f37e
|
|
360
360
|
globalid (1.4.0) sha256=037f12fbf1d9d7a014d501c2d5c77356fd4ddd96d7a7991d6700bba96706f427
|
|
361
361
|
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
362
|
-
io-console (0.9.
|
|
363
|
-
irb (1.
|
|
364
|
-
jar-dependencies (0.6.
|
|
362
|
+
io-console (0.9.5-java) sha256=34b74ec7d8e39a526fb9a82aa34853257a1baa08f56c5cd5d37ec6be2a5e6000
|
|
363
|
+
irb (1.19.0) sha256=55ee56acbdd6c9fe06a2e6909f46a24e5c41f45f16906bab04e8049cf46f1d27
|
|
364
|
+
jar-dependencies (0.6.2-java) sha256=3196d7c5b63a221e0593c260c449e3a36dbbde733ec34260109ebd50546cb8e5
|
|
365
365
|
jdbc-mysql (8.4.0.1) sha256=429cb7999d11c4f46a7153a382b6ac07935a4c10ddc52dd98e2d52b22c17fa13
|
|
366
366
|
jdbc-sqlite3 (3.46.1.1) sha256=2498fea7d37c0d51c6bad1b95ffc909173c014ba6bd36825f37910113d0230cf
|
|
367
367
|
json (2.21.2-java) sha256=f01521cd90639cc26b63040fb00d2b949f18f41ecaab5c82b02fb31d0b8b736c
|
|
@@ -382,11 +382,11 @@ CHECKSUMS
|
|
|
382
382
|
nokogiri (1.18.10-java) sha256=cd431a09c45d84a2f870ba0b7e8f571199b3727d530f2b4888a73639f76510b5
|
|
383
383
|
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
|
384
384
|
prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
|
|
385
|
-
prism (2.
|
|
385
|
+
prism (2.1.0) sha256=1c0a7c6dea0e93183390fb123f007564dbe663198e2f86ad87204151147601f3
|
|
386
386
|
psych (4.0.6-java) sha256=78f8708f8b139ee9b258c2f51b4d55dcccc8e7f567f728ba2f9868685bec8623
|
|
387
387
|
raabro (1.5.0) sha256=3f998a7bc84f9c84df3ab580634d2e0a5bda4f0841168d56035f529c9877440a
|
|
388
388
|
racc (1.8.1-java) sha256=54f2e6d1e1b91c154013277d986f52a90e5ececbe91465d29172e49342732b98
|
|
389
|
-
rack (3.2.
|
|
389
|
+
rack (3.2.8) sha256=1fecc85e463ebc7a2a945fff829ffcd549babeb1556384796fad946c28dc4ec7
|
|
390
390
|
rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
|
|
391
391
|
rack-test (2.3.0) sha256=b118d177cc002c572fc1b6fd8d19c9ed5881a36e8d6f689f9e618f9f861241e8
|
|
392
392
|
rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
|
|
@@ -399,16 +399,16 @@ CHECKSUMS
|
|
|
399
399
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
400
400
|
rexml (3.4.1) sha256=c74527a9a0a04b4ec31dbe0dc4ed6004b960af943d8db42e539edde3a871abca
|
|
401
401
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
402
|
-
rspec-core (3.13.
|
|
403
|
-
rspec-expectations (3.13.
|
|
404
|
-
rspec-mocks (3.13.
|
|
402
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
403
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
404
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
405
405
|
rspec-rails (7.1.1) sha256=e15dccabed211e2fd92f21330c819adcbeb1591c1d66c580d8f2d8288557e331
|
|
406
406
|
rspec-retry (0.6.2) sha256=6101ba23a38809811ae3484acde4ab481c54d846ac66d5037ccb40131a60d858
|
|
407
|
-
rspec-support (3.13.
|
|
407
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
408
408
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
409
|
-
sentry-rails (7.
|
|
410
|
-
sentry-ruby (7.
|
|
411
|
-
sequel (5.
|
|
409
|
+
sentry-rails (7.2.0)
|
|
410
|
+
sentry-ruby (7.2.0)
|
|
411
|
+
sequel (5.110.0) sha256=c316335b352adb4109bb02ade237b1a6dbd493493def34542ce05893f62138ae
|
|
412
412
|
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
413
413
|
simplecov-cobertura (3.2.0) sha256=70d702658677fcb20e5aceb6915ccf8bc62ff2ccd38b62b3ad5c9db5c0888740
|
|
414
414
|
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
require "set"
|
|
4
4
|
require "sentry/rails/serializer"
|
|
5
5
|
require "sentry/rails/error_reporter_context"
|
|
6
|
+
require "sentry/rails/active_job_extension"
|
|
6
7
|
|
|
7
8
|
module Sentry
|
|
8
9
|
module Rails
|
|
@@ -13,44 +14,21 @@ module Sentry
|
|
|
13
14
|
|
|
14
15
|
def self.prepended(base)
|
|
15
16
|
base.attr_accessor :_sentry
|
|
17
|
+
base.attr_reader :_sentry_job_data
|
|
16
18
|
end
|
|
17
19
|
|
|
18
20
|
def perform_now
|
|
19
21
|
if !Sentry.initialized? || already_supported_by_sentry_integration?
|
|
20
22
|
super
|
|
21
23
|
else
|
|
22
|
-
|
|
23
|
-
SentryReporter.record(
|
|
24
|
-
self,
|
|
25
|
-
trace_headers: data["trace_propagation_headers"],
|
|
26
|
-
user: data["user"]
|
|
27
|
-
) { super }
|
|
24
|
+
SentryReporter.record(self) { super }
|
|
28
25
|
end
|
|
29
26
|
end
|
|
30
27
|
|
|
31
28
|
def serialize
|
|
32
29
|
payload = super
|
|
33
30
|
return payload if !Sentry.initialized? || already_supported_by_sentry_integration?
|
|
34
|
-
|
|
35
|
-
begin
|
|
36
|
-
sentry_data = {}
|
|
37
|
-
if Sentry.configuration.rails.active_job_propagate_traces
|
|
38
|
-
headers = Sentry.get_trace_propagation_headers
|
|
39
|
-
sentry_data["trace_propagation_headers"] = headers if headers && !headers.empty?
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
if Sentry.configuration.data_collection.user_info
|
|
43
|
-
user = Sentry.get_current_scope.user
|
|
44
|
-
allowed = user.transform_keys(&:to_s).slice(*USER_FIELDS_ALLOWLIST)
|
|
45
|
-
sentry_data["user"] = allowed unless allowed.empty?
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
payload[SENTRY_PAYLOAD_KEY] = sentry_data unless sentry_data.empty?
|
|
49
|
-
rescue StandardError => e
|
|
50
|
-
Sentry.sdk_logger&.error("sentry-rails: failed to inject _sentry payload: #{e.class}: #{e.message}\n #{Array(e.backtrace).first(5).join("\n ")}")
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
payload
|
|
31
|
+
SentryReporter.prepare_payload(self, payload)
|
|
54
32
|
end
|
|
55
33
|
|
|
56
34
|
def deserialize(job_data)
|
|
@@ -58,6 +36,7 @@ module Sentry
|
|
|
58
36
|
return if !Sentry.initialized? || already_supported_by_sentry_integration?
|
|
59
37
|
|
|
60
38
|
begin
|
|
39
|
+
@_sentry_job_data = job_data
|
|
61
40
|
self._sentry = job_data[SENTRY_PAYLOAD_KEY]
|
|
62
41
|
rescue StandardError => e
|
|
63
42
|
Sentry.sdk_logger&.error("sentry-rails: failed to extract _sentry payload: #{e.class}: #{e.message}\n #{Array(e.backtrace).first(5).join("\n ")}")
|
|
@@ -65,17 +44,12 @@ module Sentry
|
|
|
65
44
|
end
|
|
66
45
|
|
|
67
46
|
def already_supported_by_sentry_integration?
|
|
68
|
-
Sentry.
|
|
47
|
+
!Sentry::Rails.active_job_owns_adapter?(self.class.queue_adapter.class)
|
|
69
48
|
end
|
|
70
49
|
|
|
71
50
|
class SentryReporter
|
|
72
|
-
OP_NAME =
|
|
73
|
-
SPAN_ORIGIN =
|
|
74
|
-
|
|
75
|
-
# Emitted as messaging.system when the configured queue adapter's
|
|
76
|
-
# identity cannot be resolved from the job. ActiveJob is adapter-agnostic
|
|
77
|
-
# and supports arbitrary third-party backends, so the concrete value is
|
|
78
|
-
# normally derived from the adapter itself; this is only the last resort.
|
|
51
|
+
OP_NAME = Sentry::JobExtensions::Extension::PROCESS_OP
|
|
52
|
+
SPAN_ORIGIN = ActiveJobExtension::SPAN_ORIGIN
|
|
79
53
|
MESSAGING_SYSTEM_FALLBACK = "activejob"
|
|
80
54
|
|
|
81
55
|
EVENT_HANDLERS = {
|
|
@@ -83,7 +57,9 @@ module Sentry
|
|
|
83
57
|
}
|
|
84
58
|
|
|
85
59
|
class << self
|
|
86
|
-
|
|
60
|
+
def prepare_payload(job, payload)
|
|
61
|
+
Sentry::Rails.active_job_extension_for(job.class).prepare_payload(job: job, payload: payload)
|
|
62
|
+
end
|
|
87
63
|
|
|
88
64
|
def producer_callback_registered?
|
|
89
65
|
@producer_callback_registered ||= false
|
|
@@ -96,143 +72,38 @@ module Sentry
|
|
|
96
72
|
def record_producer_span(job, &enqueue)
|
|
97
73
|
return yield if !Sentry.initialized? || job.already_supported_by_sentry_integration?
|
|
98
74
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
run_enqueue = lambda do
|
|
102
|
-
enqueued = true
|
|
103
|
-
enqueue.call
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
begin
|
|
107
|
-
Sentry.with_child_span(op: "queue.publish", description: job.class.name) do |span|
|
|
108
|
-
if span
|
|
109
|
-
span.set_origin(SPAN_ORIGIN)
|
|
110
|
-
span.set_data(Sentry::Span::DataConventions::MESSAGING_SYSTEM, messaging_system(job))
|
|
111
|
-
span.set_data(Sentry::Span::DataConventions::MESSAGING_MESSAGE_ID, job.job_id)
|
|
112
|
-
span.set_data(Sentry::Span::DataConventions::MESSAGING_DESTINATION_NAME, job.queue_name)
|
|
113
|
-
|
|
114
|
-
if (count = retry_count(job))
|
|
115
|
-
span.set_data(Sentry::Span::DataConventions::MESSAGING_MESSAGE_RETRY_COUNT, count)
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
run_enqueue.call
|
|
120
|
-
end
|
|
121
|
-
rescue StandardError => e
|
|
122
|
-
raise if enqueued
|
|
123
|
-
|
|
124
|
-
log_producer_span_error(e)
|
|
75
|
+
Sentry::Rails.active_job_extension_for(job.class).instrument_enqueue(job: job, &enqueue)
|
|
76
|
+
end
|
|
125
77
|
|
|
126
|
-
|
|
78
|
+
def record(job, &block)
|
|
79
|
+
with_isolated_scope do |scope|
|
|
80
|
+
record_in_scope(scope, job, &block)
|
|
127
81
|
end
|
|
128
82
|
end
|
|
129
83
|
|
|
130
|
-
def
|
|
131
|
-
Sentry.
|
|
132
|
-
|
|
84
|
+
def record_in_scope(scope, job)
|
|
85
|
+
extension = Sentry::Rails.active_job_extension_for(job.class)
|
|
86
|
+
transaction = nil
|
|
133
87
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Sentry.clone_hub_to_current_thread
|
|
88
|
+
begin
|
|
89
|
+
transaction = extension.start_job(scope: scope, job: job)
|
|
137
90
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
scope.set_user(user.transform_keys(&:to_sym)) if user && !user.empty?
|
|
141
|
-
|
|
142
|
-
scope.set_transaction_name(job.class.name, source: :task)
|
|
143
|
-
scope.set_tags(queue: job.queue_name)
|
|
144
|
-
|
|
145
|
-
scope.set_contexts(active_job: {
|
|
146
|
-
job_class: job.class.name,
|
|
147
|
-
job_id: job.job_id,
|
|
148
|
-
queue: job.queue_name,
|
|
149
|
-
provider_job_id: job.provider_job_id
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
transaction_options = {
|
|
153
|
-
name: scope.transaction_name,
|
|
154
|
-
source: scope.transaction_source,
|
|
155
|
-
op: OP_NAME,
|
|
156
|
-
origin: SPAN_ORIGIN
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
transaction = if trace_headers && !trace_headers.empty?
|
|
160
|
-
continued = Sentry.continue_trace(trace_headers, **transaction_options)
|
|
161
|
-
Sentry.start_transaction(transaction: continued, **transaction_options)
|
|
162
|
-
else
|
|
163
|
-
Sentry.start_transaction(**transaction_options)
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
if transaction
|
|
167
|
-
set_messaging_data(transaction, job)
|
|
168
|
-
scope.set_span(transaction)
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
yield.tap do
|
|
172
|
-
finish_sentry_transaction(transaction, 200)
|
|
173
|
-
end
|
|
174
|
-
rescue Exception => e # rubocop:disable Lint/RescueException
|
|
175
|
-
finish_sentry_transaction(transaction, 500)
|
|
176
|
-
|
|
177
|
-
capture_exception(job, e)
|
|
178
|
-
|
|
179
|
-
raise
|
|
91
|
+
yield.tap do
|
|
92
|
+
extension.finish_job(transaction: transaction, status: 200)
|
|
180
93
|
end
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
Sentry.set_current_hub_internal(original_hub)
|
|
184
|
-
end
|
|
94
|
+
rescue Exception => e # rubocop:disable Lint/RescueException
|
|
95
|
+
extension.finish_job(transaction: transaction, status: 500)
|
|
185
96
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
transaction.set_data(Sentry::Span::DataConventions::MESSAGING_DESTINATION_NAME, job.queue_name)
|
|
190
|
-
if (count = retry_count(job))
|
|
191
|
-
transaction.set_data(Sentry::Span::DataConventions::MESSAGING_MESSAGE_RETRY_COUNT, count)
|
|
192
|
-
end
|
|
97
|
+
if extension.safely("decide whether to report the job exception", fallback: true) { extension.report_exception?(job: job, exception: e) }
|
|
98
|
+
extension.capture_exception(job: job, exception: e)
|
|
99
|
+
end
|
|
193
100
|
|
|
194
|
-
|
|
195
|
-
transaction.set_data(Sentry::Span::DataConventions::MESSAGING_MESSAGE_RECEIVE_LATENCY, latency)
|
|
101
|
+
raise
|
|
196
102
|
end
|
|
197
103
|
end
|
|
198
104
|
|
|
199
|
-
def messaging_system(job)
|
|
200
|
-
name = job.class.queue_adapter_name if job.class.respond_to?(:queue_adapter_name)
|
|
201
|
-
name = name.to_s
|
|
202
|
-
name.empty? ? MESSAGING_SYSTEM_FALLBACK : name
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
# Number of retries the job has already gone through, as observed at
|
|
206
|
-
# the moment the span is opened. On the consumer the span opens before
|
|
207
|
-
# ActiveJob increments +executions+, so a job's first attempt reads 0,
|
|
208
|
-
# its first retry reads 1, and so on. On the producer the retry enqueue
|
|
209
|
-
# runs after the failed attempt bumped +executions+, so it observes the
|
|
210
|
-
# same progression.
|
|
211
|
-
def retry_count(job)
|
|
212
|
-
job.executions.to_i if job.respond_to?(:executions)
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
def compute_latency(job)
|
|
216
|
-
return unless job.respond_to?(:enqueued_at) && job.enqueued_at
|
|
217
|
-
|
|
218
|
-
enqueued_time = job.enqueued_at.is_a?(String) ? Time.parse(job.enqueued_at) : job.enqueued_at
|
|
219
|
-
(Time.now.to_f - enqueued_time.to_f) * 1000.0
|
|
220
|
-
end
|
|
221
|
-
|
|
222
105
|
def capture_exception(job, e)
|
|
223
|
-
|
|
224
|
-
extra: sentry_context(job),
|
|
225
|
-
tags: {
|
|
226
|
-
job_id: job.job_id,
|
|
227
|
-
provider_job_id: job.provider_job_id
|
|
228
|
-
},
|
|
229
|
-
# Send synchronously: a worker process may exit before the async
|
|
230
|
-
# background worker flushes its queue, which would drop the event.
|
|
231
|
-
hint: { background: false }
|
|
232
|
-
}
|
|
233
|
-
options[:contexts] = execution_context if Sentry.configuration.data_collection.queues
|
|
234
|
-
|
|
235
|
-
Sentry::Rails.capture_exception(e, **options)
|
|
106
|
+
Sentry::Rails.active_job_extension_for(job.class).capture_exception(job: job, exception: e)
|
|
236
107
|
end
|
|
237
108
|
|
|
238
109
|
def register_event_handlers
|
|
@@ -255,9 +126,14 @@ module Sentry
|
|
|
255
126
|
handle_error_event(*args) do |job, error|
|
|
256
127
|
return if error.nil?
|
|
257
128
|
return if !Sentry.initialized? || job.already_supported_by_sentry_integration?
|
|
258
|
-
return unless Sentry.configuration.rails.active_job_report_on_retry_error
|
|
259
129
|
|
|
260
|
-
|
|
130
|
+
extension = Sentry::Rails.active_job_extension_for(job.class)
|
|
131
|
+
report = extension.safely("decide whether to report the retried exception", fallback: Sentry.configuration.rails.active_job_report_on_retry_error) do
|
|
132
|
+
extension.report_retried_exception?(job: job, exception: error)
|
|
133
|
+
end
|
|
134
|
+
return unless report
|
|
135
|
+
|
|
136
|
+
extension.capture_exception(job: job, exception: error)
|
|
261
137
|
end
|
|
262
138
|
end
|
|
263
139
|
|
|
@@ -266,35 +142,18 @@ module Sentry
|
|
|
266
142
|
yield(event.payload[:job], event.payload[:error])
|
|
267
143
|
end
|
|
268
144
|
|
|
269
|
-
|
|
270
|
-
return unless transaction
|
|
145
|
+
private :record_in_scope
|
|
271
146
|
|
|
272
|
-
|
|
273
|
-
transaction.finish
|
|
274
|
-
end
|
|
275
|
-
|
|
276
|
-
def sentry_context(job)
|
|
277
|
-
context = {
|
|
278
|
-
active_job: job.class.name,
|
|
279
|
-
scheduled_at: job.scheduled_at,
|
|
280
|
-
job_id: job.job_id,
|
|
281
|
-
provider_job_id: job.provider_job_id,
|
|
282
|
-
locale: job.locale
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
if Sentry.configuration.data_collection.queues
|
|
286
|
-
context[:arguments] = sentry_serialize_arguments(job.arguments)
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
context
|
|
290
|
-
end
|
|
147
|
+
private
|
|
291
148
|
|
|
292
|
-
def
|
|
293
|
-
Sentry
|
|
149
|
+
def with_isolated_scope(&block)
|
|
150
|
+
original_hub = Sentry.get_current_hub_internal
|
|
151
|
+
Sentry.clone_hub_to_current_thread
|
|
152
|
+
Sentry.with_scope(&block)
|
|
153
|
+
ensure
|
|
154
|
+
Sentry.set_current_hub_internal(original_hub)
|
|
294
155
|
end
|
|
295
156
|
|
|
296
|
-
private
|
|
297
|
-
|
|
298
157
|
def subscribers
|
|
299
158
|
@__subscribers__ ||= Set.new
|
|
300
159
|
end
|