Sha256: 7b6f84ab2ce33359a41f9f67cbbdfdfa350d61e0e41d7e15ae16edf658d0b814
Contents?: true
Size: 1.43 KB
Versions: 5
Compression:
Stored size: 1.43 KB
Contents
# frozen_string_literal: true require_relative 'configuration/settings' require_relative 'patcher' require_relative '../integration' require_relative '../../../core/contrib/rails/utils' module Datadog module Tracing module Contrib module ActionMailer # Description of ActionMailer integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('5.0.0') # @public_api Changing the integration name or integration options can cause breaking changes register_as :action_mailer, auto_patch: false def self.gem_name 'actionmailer' end def self.version Gem.loaded_specs['actionmailer'] && Gem.loaded_specs['actionmailer'].version end def self.loaded? !defined?(::ActionMailer).nil? end def self.compatible? super && version >= MINIMUM_VERSION && !defined?(::ActiveSupport::Notifications).nil? end # enabled by rails integration so should only auto instrument # if detected that it is being used without rails def auto_instrument? !Core::Contrib::Rails::Utils.railtie_supported? end def new_configuration Configuration::Settings.new end def patcher ActionMailer::Patcher end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems