Sha256: 3f1ce9f68dc1bb7c464d972dcd2f170a588e11e92d48786e75a12edaec6af665

Contents?: true

Size: 664 Bytes

Versions: 9

Compression:

Stored size: 664 Bytes

Contents

# frozen_string_literal: true

require_relative 'events/cache'

module Datadog
  module Tracing
    module Contrib
      module ActiveSupport
        module Cache
          # Defines collection of instrumented ActiveSupport events
          module Events
            ALL = [
              Events::Cache,
            ].freeze

            module_function

            def all
              self::ALL
            end

            def subscriptions
              all.collect(&:subscriptions).collect(&:to_a).flatten
            end

            def subscribe!
              all.each(&:subscribe!)
            end
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/tracing/contrib/active_support/cache/events.rb
datadog-2.8.0 lib/datadog/tracing/contrib/active_support/cache/events.rb
datadog-2.7.1 lib/datadog/tracing/contrib/active_support/cache/events.rb
datadog-2.7.0 lib/datadog/tracing/contrib/active_support/cache/events.rb
datadog-2.6.0 lib/datadog/tracing/contrib/active_support/cache/events.rb
datadog-2.5.0 lib/datadog/tracing/contrib/active_support/cache/events.rb
datadog-2.4.0 lib/datadog/tracing/contrib/active_support/cache/events.rb
datadog-2.3.0 lib/datadog/tracing/contrib/active_support/cache/events.rb
datadog-2.2.0 lib/datadog/tracing/contrib/active_support/cache/events.rb