lib/elastic_apm/spies/sidekiq.rb in elastic-apm-2.12.0 vs lib/elastic_apm/spies/sidekiq.rb in elastic-apm-3.0.0

- old
+ new

@@ -12,11 +12,10 @@ class Middleware # rubocop:disable Metrics/MethodLength def call(_worker, job, queue) name = SidekiqSpy.name_for(job) transaction = ElasticAPM.start_transaction(name, 'Sidekiq') - # TODO: Remove #to_s when #set_tag is removed in v3.0 - ElasticAPM.set_label(:queue, queue.to_s) + ElasticAPM.set_label(:queue, queue) yield transaction.done :success if transaction rescue ::Exception => e