Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set consistent context in delayed_job integration #499

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

* Set default Delayed Job error context to job class
| [#499](https://github.com/bugsnag/bugsnag-ruby/pull/499)
| [Mike Stewart](https://github.com/mike-stewart)

## 6.9.0 (12 Nov 2018)

### Enhancements
Expand Down
1 change: 1 addition & 0 deletions lib/bugsnag/middleware/delayed_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def call(report)
job_data[:active_job] = job.payload_object.job_data if job.payload_object.respond_to?(:job_data)
payload_data = construct_job_payload(job.payload_object)
report.context = payload_data[:display_name] if payload_data.include?(:display_name)
report.context ||= payload_data[:class] if payload_data.include?(:class)
job_data[:payload] = payload_data
end

Expand Down