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