lib/datadog/tracing/contrib/delayed_job/plugin.rb in ddtrace-1.9.0 vs lib/datadog/tracing/contrib/delayed_job/plugin.rb in ddtrace-1.10.0

- old
+ new

@@ -1,7 +1,5 @@ -# typed: ignore - require 'delayed/plugin' require_relative '../../metadata/ext' require_relative '../analytics' require_relative 'ext' @@ -35,10 +33,12 @@ span.set_tag(Tracing::Metadata::Ext::TAG_COMPONENT, Ext::TAG_COMPONENT) span.set_tag(Tracing::Metadata::Ext::TAG_OPERATION, Ext::TAG_OPERATION_JOB) span.set_tag(Tracing::Metadata::Ext::TAG_KIND, Tracing::Metadata::Ext::SpanKind::TAG_CONSUMER) + span.set_tag(Contrib::Ext::Messaging::TAG_SYSTEM, Ext::TAG_COMPONENT) + yield job end end def self.instrument_enqueue(job, &block) @@ -60,9 +60,11 @@ span.set_tag(Tracing::Metadata::Ext::TAG_COMPONENT, Ext::TAG_COMPONENT) span.set_tag(Tracing::Metadata::Ext::TAG_OPERATION, Ext::TAG_OPERATION_ENQUEUE) span.set_tag(Tracing::Metadata::Ext::TAG_KIND, Tracing::Metadata::Ext::SpanKind::TAG_PRODUCER) + + span.set_tag(Contrib::Ext::Messaging::TAG_SYSTEM, Ext::TAG_COMPONENT) yield job end end