Merge pull request #10495 from colinux/activejob-log-request-id

Tech: log request_id enqueueing a job
This commit is contained in:
Colin Darie 2024-06-06 15:32:57 +00:00 committed by GitHub
commit 1846ab469c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,7 @@ class ActiveJob::ApplicationLogSubscriber < ::ActiveJob::LogSubscriber
def process_event(event, type)
data = extract_metadata(event)
data.merge!(extract_exception(event))
data[:request_id] = Current.request_id if Current.request_id.present?
case type
when 'enqueue_at'