github
73 of 75 new or added lines in 5 files covered. (97.33%)
12 existing lines in 1 file now uncovered.15628 of 18772 relevant lines covered (83.25%)
510.63 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
UNCOV
3
|
module Worker |
× |
UNCOV
4
|
class CaptureErrorJob < ::ApplicationJob |
× |
UNCOV
5
|
self.queue_adapter = :async |
× |
UNCOV
6
|
queue_as :capture_error
|
× |
7 |
|
|
UNCOV
8
|
rescue_from StandardError, with: :log_error |
× |
9 |
|
|
UNCOV
10
|
retry_on Sentry::Error, |
× |
UNCOV
11
|
wait: 1.minute, |
× |
UNCOV
12
|
attempts: 5 |
× |
13 |
|
|
UNCOV
14
|
def perform(event, hint) |
× |
15 |
return unless CaptureError.enabled? |
× |
16 |
|
|
17 |
Sentry.send_event(event, hint)
|
× |
UNCOV
18
|
end
|
× |
UNCOV
19
|
end
|
× |
UNCOV
20
|
end
|
× |