diff --git a/instrumentation/sidekiq/lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb b/instrumentation/sidekiq/lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb index c9bad2688..0637e8b07 100644 --- a/instrumentation/sidekiq/lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb +++ b/instrumentation/sidekiq/lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb @@ -38,8 +38,7 @@ def call(worker, msg, _queue) 'com.joyful_programming.messaging.message.created_at' => msg['created_at'], 'com.joyful_programming.messaging.message.enqueued_at' => msg['enqueued_at'], 'com.joyful_programming.messaging.message.failed_at' => msg['failed_at'], - 'com.joyful_programming.messaging.message.retried_at' => msg['retried_at'], - 'com.joyful_programming.messaging.message.retries.dead_queue_enabled' => worker.sidekiq_options_hash['dead'] || true + 'com.joyful_programming.messaging.message.retried_at' => msg['retried_at'] }.compact attributes[SemanticConventions::Trace::PEER_SERVICE] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service] diff --git a/instrumentation/sidekiq/opentelemetry-instrumentation-sidekiq.gemspec b/instrumentation/sidekiq/opentelemetry-instrumentation-sidekiq.gemspec index dd23a0e7e..224503b90 100644 --- a/instrumentation/sidekiq/opentelemetry-instrumentation-sidekiq.gemspec +++ b/instrumentation/sidekiq/opentelemetry-instrumentation-sidekiq.gemspec @@ -38,6 +38,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-mocks' spec.add_development_dependency 'rubocop', '~> 1.62' spec.add_development_dependency 'rubocop-performance', '~> 1.20' + spec.add_development_dependency 'sidekiq' spec.add_development_dependency 'simplecov', '~> 0.17.1' spec.add_development_dependency 'yard', '~> 0.9' diff --git a/instrumentation/sidekiq/test/test_helper.rb b/instrumentation/sidekiq/test/test_helper.rb index df49e4125..6abe5eb10 100644 --- a/instrumentation/sidekiq/test/test_helper.rb +++ b/instrumentation/sidekiq/test/test_helper.rb @@ -11,6 +11,7 @@ require 'minitest/autorun' require 'rspec/mocks/minitest_integration' +require 'sidekiq' require 'sidekiq/testing' if Gem::Version.new(Sidekiq::VERSION) >= Gem::Version.new('7.0.0')