Module: Datadog::Tracing::Contrib::ActiveRecord::Event

Included in:
Datadog::Tracing::Contrib::ActiveRecord::Events::Instantiation, Datadog::Tracing::Contrib::ActiveRecord::Events::SQL
Defined in:
lib/datadog/tracing/contrib/active_record/event.rb

Overview

Defines basic behaviors for an ActiveRecord event.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



11
12
13
14
# File 'lib/datadog/tracing/contrib/active_record/event.rb', line 11

def self.included(base)
  base.include(ActiveSupport::Notifications::Event)
  base.extend(ClassMethods)
end