module Datadog::ForcedTracing::Span
Extension for Datadog::Span
Public Instance Methods
set_tag(key, value)
click to toggle source
Calls superclass method
# File lib/ddtrace/forced_tracing.rb, line 21 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::ManualTracing::TAG_KEEP ForcedTracing.keep(self) unless value == false when Ext::ManualTracing::TAG_DROP ForcedTracing.drop(self) unless value == false else # Otherwise, set the tag normally. super if defined?(super) end end