Sha256: b293e88e8c012c3234c3f06e5dc5196ecaa16a22ddbd09eb761b6583059dd6b4
Contents?: true
Size: 734 Bytes
Versions: 5
Compression:
Stored size: 734 Bytes
Contents
# typed: true require 'ddtrace/contrib/active_support/notifications/event' module Datadog 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 { service: configuration[:service_name] } end def tracer -> { configuration[:tracer] } end def configuration Datadog.configuration[:active_record] end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems