Module: Datadog::Contrib::ActiveRecord::Events
- Defined in:
- lib/ddtrace/contrib/active_record/events.rb,
lib/ddtrace/contrib/active_record/events/sql.rb,
lib/ddtrace/contrib/active_record/events/instantiation.rb
Overview
Defines collection of instrumented ActiveRecord events
Defined Under Namespace
Modules: Instantiation, SQL
Constant Summary
collapse
- ALL =
[
Events::Instantiation,
Events::SQL
].freeze
Class Method Summary
collapse
Class Method Details
.all ⇒ Object
16
17
18
|
# File 'lib/ddtrace/contrib/active_record/events.rb', line 16
def all
self::ALL
end
|
.subscribe! ⇒ Object
24
25
26
|
# File 'lib/ddtrace/contrib/active_record/events.rb', line 24
def subscribe!
all.each(&:subscribe!)
end
|
.subscriptions ⇒ Object
20
21
22
|
# File 'lib/ddtrace/contrib/active_record/events.rb', line 20
def subscriptions
all.collect(&:subscriptions).collect(&:to_a).flatten
end
|