Sha256: fdf864c3c82319d79fd6e7a65744ca638661f5089d48b3d2f475d7768f044952

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 Bytes

Contents

# typed: true

require 'datadog/tracing/contrib/active_support/notifications/event'

module Datadog
  module Tracing
    module Contrib
      module ActiveRecord
        # Defines basic behaviors for an ActiveRecord 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_record]
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-1.2.0 lib/datadog/tracing/contrib/active_record/event.rb
ddtrace-1.1.0 lib/datadog/tracing/contrib/active_record/event.rb
ddtrace-1.0.0 lib/datadog/tracing/contrib/active_record/event.rb
ddtrace-1.0.0.beta2 lib/datadog/tracing/contrib/active_record/event.rb