lib/ddtrace/contrib/sidekiq/server_tracer.rb in ddtrace-0.37.0 vs lib/ddtrace/contrib/sidekiq/server_tracer.rb in ddtrace-0.38.0
- old
+ new
@@ -29,9 +29,10 @@
# Measure service stats
Contrib::Analytics.set_measured(span)
span.set_tag(Ext::TAG_JOB_ID, job['jid'])
span.set_tag(Ext::TAG_JOB_RETRY, job['retry'])
+ span.set_tag(Ext::TAG_JOB_RETRY_COUNT, job['retry_count'])
span.set_tag(Ext::TAG_JOB_QUEUE, job['queue'])
span.set_tag(Ext::TAG_JOB_WRAPPER, job['class']) if job['wrapped']
span.set_tag(Ext::TAG_JOB_DELAY, 1000.0 * (Time.now.utc.to_f - job['enqueued_at'].to_f))
if tag_args && !job['args'].nil? && !job['args'].empty?
span.set_tag(Ext::TAG_JOB_ARGS, job['args'])