lib/opentelemetry/instrumentation/sidekiq/middlewares/client/tracer_middleware.rb in opentelemetry-instrumentation-sidekiq-0.22.0 vs lib/opentelemetry/instrumentation/sidekiq/middlewares/client/tracer_middleware.rb in opentelemetry-instrumentation-sidekiq-0.22.1
- old
+ new
@@ -10,10 +10,10 @@
module Middlewares
module Client
# TracerMiddleware propagates context and instruments Sidekiq client
# by way of its middleware system
class TracerMiddleware
- def call(_worker_class, job, _queue, _redis_pool) # rubocop:disable Metrics/AbcSize
+ def call(_worker_class, job, _queue, _redis_pool)
attributes = {
'messaging.system' => 'sidekiq',
'messaging.sidekiq.job_class' => job['wrapped']&.to_s || job['class'],
'messaging.message_id' => job['jid'],
'messaging.destination' => job['queue'],