lib/mnemosyne/middleware/sidekiq.rb in mnemosyne-ruby-1.17.0 vs lib/mnemosyne/middleware/sidekiq.rb in mnemosyne-ruby-2.0.0
- old
+ new
@@ -7,18 +7,20 @@
origin = job.delete('mnemosyne.origin') { false }
transaction = job.delete('mnemosyne.transaction') { uuid }
meta = {
raw: job,
- queue: queue,
+ queue:,
worker: worker.class.name,
arguments: job['args']
}
- trace = ::Mnemosyne::Instrumenter.trace 'app.job.perform.sidekiq',
- transaction: transaction,
- origin: origin,
- meta: meta
+ trace = ::Mnemosyne::Instrumenter.trace(
+ 'app.job.perform.sidekiq',
+ transaction:,
+ origin:,
+ meta:
+ )
trace&.start!
yield
rescue StandardError, LoadError, SyntaxError => e