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
18 19 20 |
# File 'lib/datadog/tracing/contrib/active_support/cache/events.rb', line 18 def all self::ALL end |
.subscribe! ⇒ Object
26 27 28 |
# File 'lib/datadog/tracing/contrib/active_support/cache/events.rb', line 26 def subscribe! all.each(&:subscribe!) end |
.subscriptions ⇒ Object
22 23 24 |
# File 'lib/datadog/tracing/contrib/active_support/cache/events.rb', line 22 def subscriptions all.collect(&:subscriptions).collect(&:to_a).flatten end |