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
- #datadog_pin ⇒ Object
- #execute(sql, options = ::Sequel::OPTS, &block) ⇒ Object
- #execute_ddl(sql, options = ::Sequel::OPTS, &block) ⇒ Object
- #execute_dui(sql, options = ::Sequel::OPTS, &block) ⇒ Object
- #execute_insert(sql, options = ::Sequel::OPTS, &block) ⇒ Object
Instance Method Details
#datadog_pin ⇒ Object
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, = ::Sequel::OPTS, &block) trace_execute(proc { super(sql, , &block) }, sql, , &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, = ::Sequel::OPTS, &block) trace_execute(proc { super(sql, , &block) }, sql, , &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, = ::Sequel::OPTS, &block) trace_execute(proc { super(sql, , &block) }, sql, , &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, = ::Sequel::OPTS, &block) trace_execute(proc { super(sql, , &block) }, sql, , &block) end |