Module: Datadog::Tracing::Contrib::Sequel::Dataset::InstanceMethods

Defined in:
lib/datadog/tracing/contrib/sequel/dataset.rb

Overview

Instance methods for instrumenting Sequel::Dataset

Instance Method Summary collapse

Instance Method Details

#execute(sql, options = ::Sequel::OPTS, &block) ⇒ Object



20
21
22
# File 'lib/datadog/tracing/contrib/sequel/dataset.rb', line 20

def execute(sql, options = ::Sequel::OPTS, &block)
  trace_execute(proc { super(sql, options, &block) }, sql, options, &block)
end

#execute_ddl(sql, options = ::Sequel::OPTS, &block) ⇒ Object



24
25
26
# File 'lib/datadog/tracing/contrib/sequel/dataset.rb', line 24

def execute_ddl(sql, options = ::Sequel::OPTS, &block)
  trace_execute(proc { super(sql, options, &block) }, sql, options, &block)
end

#execute_dui(sql, options = ::Sequel::OPTS, &block) ⇒ Object



28
29
30
# File 'lib/datadog/tracing/contrib/sequel/dataset.rb', line 28

def execute_dui(sql, options = ::Sequel::OPTS, &block)
  trace_execute(proc { super(sql, options, &block) }, sql, options, &block)
end

#execute_insert(sql, options = ::Sequel::OPTS, &block) ⇒ Object



32
33
34
# File 'lib/datadog/tracing/contrib/sequel/dataset.rb', line 32

def execute_insert(sql, options = ::Sequel::OPTS, &block)
  trace_execute(proc { super(sql, options, &block) }, sql, options, &block)
end