lib/mnemosyne/probes/msgr/consumer.rb in mnemosyne-ruby-1.17.0 vs lib/mnemosyne/probes/msgr/consumer.rb in mnemosyne-ruby-2.0.0
- old
+ new
@@ -22,12 +22,14 @@
origin = headers.delete('mnemosyne.origin')
transaction = headers.delete('mnemosyne.transaction') do
::SecureRandom.uuid
end
- trace = ::Mnemosyne::Instrumenter.trace NAME,
- transaction: transaction,
- origin: origin
+ trace = ::Mnemosyne::Instrumenter.trace(
+ NAME,
+ transaction:,
+ origin:
+ )
if trace
trace.meta[:properties] = {
content_type: metadata.content_type,
priority: metadata.priority,