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

Defined in:
lib/ddtrace/contrib/sequel/dataset.rb

Overview

Instance methods for instrumenting Sequel::Dataset

Instance Method Summary collapse

Instance Method Details

#datadog_pinObject



34
35
36
# File 'lib/ddtrace/contrib/sequel/dataset.rb', line 34

def datadog_pin
  Datadog::Pin.get_from(db)
end

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



18
19
20
# File 'lib/ddtrace/contrib/sequel/dataset.rb', line 18

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



22
23
24
# File 'lib/ddtrace/contrib/sequel/dataset.rb', line 22

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



26
27
28
# File 'lib/ddtrace/contrib/sequel/dataset.rb', line 26

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



30
31
32
# File 'lib/ddtrace/contrib/sequel/dataset.rb', line 30

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