chore(job): log request_id enqueueing a job

This commit is contained in:
Colin Darie 2024-06-06 11:52:25 +02:00
parent 3a4e8b2a32
commit bb3e53a6fe
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

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'