lib/datadog/tracing/contrib/delayed_job/plugin.rb in ddtrace-1.0.0.beta1 vs lib/datadog/tracing/contrib/delayed_job/plugin.rb in ddtrace-1.0.0.beta2
- old
+ new
@@ -1,6 +1,7 @@
# typed: ignore
+
require 'delayed/plugin'
require 'datadog/tracing'
require 'datadog/tracing/metadata/ext'
require 'datadog/tracing/contrib/analytics'
@@ -68,10 +69,10 @@
Tracing.shutdown! if Tracing.enabled?
end
def self.configuration
- Datadog.configuration[:delayed_job]
+ Datadog.configuration.tracing[:delayed_job]
end
def self.job_name(job)
# When DelayedJob is used through ActiveJob, we need to parse the payload differentely
# to get the actual job name