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