Sha256: b5eef9e7cdaddf0a3264b10d7f6f9f1139ba2e4f102cc18b323f702e7cb6b72f

Contents?: true

Size: 754 Bytes

Versions: 9

Compression:

Stored size: 754 Bytes

Contents

# frozen_string_literal: true

require_relative '../notifications/event'

module Datadog
  module Tracing
    module Contrib
      module ActiveSupport
        module Cache
          # Defines basic behaviors for an ActiveSupport event.
          module Event
            def self.included(base)
              base.include(ActiveSupport::Notifications::Event)
              base.extend(ClassMethods)
            end

            # Class methods for ActiveRecord events.
            module ClassMethods
              def span_options
                {}
              end

              def configuration
                Datadog.configuration.tracing[:active_support]
              end
            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/event.rb
datadog-2.8.0 lib/datadog/tracing/contrib/active_support/cache/event.rb
datadog-2.7.1 lib/datadog/tracing/contrib/active_support/cache/event.rb
datadog-2.7.0 lib/datadog/tracing/contrib/active_support/cache/event.rb
datadog-2.6.0 lib/datadog/tracing/contrib/active_support/cache/event.rb
datadog-2.5.0 lib/datadog/tracing/contrib/active_support/cache/event.rb
datadog-2.4.0 lib/datadog/tracing/contrib/active_support/cache/event.rb
datadog-2.3.0 lib/datadog/tracing/contrib/active_support/cache/event.rb
datadog-2.2.0 lib/datadog/tracing/contrib/active_support/cache/event.rb