Module: Datadog::Analytics::Span

Defined in:
lib/ddtrace/analytics.rb

Overview

Extension for Datadog::Span

Defined Under Namespace

Modules: InstanceMethods, InstanceMethodsCompatibility

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/ddtrace/analytics.rb', line 15

def self.included(base)
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
    base.class_eval do
      # Instance methods
      include InstanceMethodsCompatibility
      include InstanceMethods
    end
  else
    base.send(:prepend, InstanceMethods)
  end
end