Module: Datadog::ForcedTracing::Span
- Included in:
- Span
- Defined in:
- lib/ddtrace/forced_tracing.rb
Overview
Extension for Datadog::Span
Instance Method Summary collapse
Instance Method Details
#set_tag(key, value) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# 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 |