Sha256: bd9dbee773e77d2ff0ed987ef23aa537aff2d70965429081a99ce55fe8afd358

Contents?: true

Size: 527 Bytes

Versions: 132

Compression:

Stored size: 527 Bytes

Contents

module Appsignal
  class Hooks
    class ActionMailerHook < Appsignal::Hooks::Hook
      register :action_mailer

      def dependencies_present?
        defined?(::ActionMailer)
      end

      def install
        ActiveSupport::Notifications
          .subscribe("process.action_mailer") do |_, _, _, _, payload|
          Appsignal.increment_counter(
            :action_mailer_process,
            1,
            :mailer => payload[:mailer], :action => payload[:action]
          )
        end
      end
    end
  end
end

Version data entries

132 entries across 132 versions & 1 rubygems

Version Path
appsignal-3.3.11-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.11 lib/appsignal/hooks/action_mailer.rb
appsignal-3.4.0-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.4.0 lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.10-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.10 lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.9-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.9 lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.8-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.8 lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.7-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.7 lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.6-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.6 lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.5-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.5 lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.4-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.4 lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.3-java lib/appsignal/hooks/action_mailer.rb
appsignal-3.3.3 lib/appsignal/hooks/action_mailer.rb