lib/tobox/plugins/datadog.rb in tobox-0.6.1 vs lib/tobox/plugins/datadog.rb in tobox-0.7.0
- old
+ new
@@ -56,10 +56,10 @@
# Measure service stats
::Datadog::Tracing::Contrib::Analytics.set_measured(span)
span.set_tag("tobox.event.id", event[:id])
span.set_tag("tobox.event.type", event[:type])
- span.set_tag("tobox.event.retry", event[:attempts])
+ span.set_tag("tobox.event.retry", event[@attempts_column]) if @attempts_column
span.set_tag("tobox.event.table", @db_table)
span.set_tag("tobox.event.delay", (Time.now.utc - event[:created_at]).to_f)
event[:__tobox_event_span] = span
end