lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb in opentelemetry-instrumentation-sidekiq-0.6.0 vs lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb in opentelemetry-instrumentation-sidekiq-0.7.0
- old
+ new
@@ -18,10 +18,10 @@
msg['wrapped']&.to_s || msg['class'],
attributes: {
'messaging.message_id' => msg['jid'],
'messaging.destination' => msg['queue']
},
- with_parent_context: parent_context,
+ with_parent: parent_context,
kind: :consumer
) do |span|
span.add_event('created_at', timestamp: msg['created_at'])
span.add_event('enqueued_at', timestamp: msg['enqueued_at'])
yield