lib/datadog/tracing/contrib/racecar/event.rb in ddtrace-1.0.0.beta1 vs lib/datadog/tracing/contrib/racecar/event.rb in ddtrace-1.0.0.beta2
- old
+ new
@@ -1,6 +1,7 @@
# typed: true
+
require 'datadog/tracing'
require 'datadog/tracing/metadata/ext'
require 'datadog/tracing/contrib/active_support/notifications/event'
require 'datadog/tracing/contrib/analytics'
require 'datadog/tracing/contrib/racecar/ext'
@@ -28,10 +29,10 @@
def span_options
{ service: configuration[:service_name] }
end
def configuration
- Datadog.configuration[:racecar]
+ Datadog.configuration.tracing[:racecar]
end
def process(span, event, _id, payload)
span.service = configuration[:service_name]
span.resource = payload[:consumer_class]