Class: Sidekiq::ErrorTag
- Inherits:
-
Object
- Object
- Sidekiq::ErrorTag
- Defined in:
- lib/sidekiq/error_tag.rb
Instance Method Summary collapse
Instance Method Details
#call(_worker, job, _queue) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/sidekiq/error_tag.rb', line 4 def call(_worker, job, _queue) Sentry.(job: job['class'], request_id: job['request_id'] || 'N/A', source: job['source']) Sentry.set_user(remote_ip: job['remote_ip'] || 'N/A', user_agent: job['user_agent'] || 'N/A', id: job['user_uuid'] || 'N/A') yield end |