lib/appsignal/integrations/delayed_job_plugin.rb in appsignal-0.12.rc.13 vs lib/appsignal/integrations/delayed_job_plugin.rb in appsignal-0.12.rc.14

- old
+ new

@@ -1,10 +1,8 @@ module Appsignal class Hooks class DelayedJobPlugin < ::Delayed::Plugin - include Appsignal::Hooks::Helpers - callbacks do |lifecycle| lifecycle.around(:invoke_job) do |job, &block| invoke_with_instrumentation(job, block) end @@ -29,19 +27,12 @@ :id => job.id, :queue => job.queue, :priority => job.priority || 0, :attempts => job.attempts || 0 }, - :params => format_args(job.payload_object.args), :queue_start => job.created_at ) do block.call(job) - end - end - - def self.format_args(args) - args.map do |arg| - self.truncate(self.string_or_inspect(arg)) end end end end end