Module: Datadog::ForcedTracing::Span::InstanceMethodsCompatibility
- Defined in:
- lib/ddtrace/forced_tracing.rb
Overview
Compatibility shim for Rubies not supporting .prepend NOTE: This patching strategy only works because it has been applied after
Datadog::Analytics::Span. Any changes will likely break this.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/ddtrace/forced_tracing.rb', line 37 def self.included(base) base.send(:alias_method, :set_tag_without_forced_tracing, :set_tag) define_method :set_tag do |*args, &block| set_tag_without_forced_tracing(*args, &block) end end |