diff --git a/CHANGELOG.md b/CHANGELOG.md index c96265865..93d7cd00a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Unreleased +### Features + +- Include `Delayed::Job` instance in hint [#1861](https://github.com/getsentry/sentry-ruby/pull/1861) + ### Bug Fixes - Fix puma integration for versions before v5 ([#2141](https://github.com/getsentry/sentry-ruby/pull/2141)) diff --git a/sentry-delayed_job/lib/sentry/delayed_job/plugin.rb b/sentry-delayed_job/lib/sentry/delayed_job/plugin.rb index 073d4f9bc..8fa7bac6a 100644 --- a/sentry-delayed_job/lib/sentry/delayed_job/plugin.rb +++ b/sentry-delayed_job/lib/sentry/delayed_job/plugin.rb @@ -74,7 +74,7 @@ def self.compute_job_class(payload_object) end def self.capture_exception(exception, job) - Sentry::DelayedJob.capture_exception(exception, hint: { background: false }) if report?(job) + Sentry::DelayedJob.capture_exception(exception, hint: { background: false, delayed_job: job }) if report?(job) end def self.report?(job)