lib/ddtrace/forced_tracing.rb in ddtrace-0.24.0 vs lib/ddtrace/forced_tracing.rb in ddtrace-0.25.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'ddtrace/ext/forced_tracing'
+require 'ddtrace/ext/manual_tracing'
require 'ddtrace/ext/priority'
module Datadog
# Defines analytics behavior
module ForcedTracing
@@ -47,12 +47,12 @@
module InstanceMethods
def set_tag(key, value)
# Configure sampling priority if they give us a forced tracing tag
# DEV: Do not set if the value they give us is explicitly "false"
case key
- when Ext::ForcedTracing::TAG_KEEP
+ when Ext::ManualTracing::TAG_KEEP
ForcedTracing.keep(self) unless value == false
- when Ext::ForcedTracing::TAG_DROP
+ when Ext::ManualTracing::TAG_DROP
ForcedTracing.drop(self) unless value == false
else
# Otherwise, set the tag normally.
super if defined?(super)
end