Class: Honeybadger::ActiveJobSubscriber

Inherits:
NotificationSubscriber show all
Defined in:
lib/honeybadger/notification_subscriber.rb

Instance Method Summary collapse

Methods inherited from NotificationSubscriber

#finish, #process?, #record, #record_metrics, #start

Methods included from InstrumentationHelper

#decrement_counter, #extract_attributes, #extract_callable, #gauge, #histogram, #increment_counter, #metric_agent, #metric_attributes, #metric_instrumentation, #metric_source, #monotonic_timer, #time

Instance Method Details

#format_payload(payload) ⇒ Object



124
125
126
127
128
129
130
131
132
133
# File 'lib/honeybadger/notification_subscriber.rb', line 124

def format_payload(payload)
  job = payload[:job]
  adapter = payload[:adapter]
  payload.except(:job, :adapter).merge({
    adapter_class: adapter.class.to_s,
    job_class: job.class.to_s,
    job_id: job.job_id,
    queue_name: job.queue_name
  })
end