Sha256: fa540c1c0dbadf4b0986a6b7955a4ae7dea62ba1f18580209a58ffada55724e6

Contents?: true

Size: 620 Bytes

Versions: 6

Compression:

Stored size: 620 Bytes

Contents

module Appsignal
  class TransactionFormatter
    class FaultyRequestFormatter < Appsignal::TransactionFormatter

      def to_hash
        super.merge :exception => formatted_exception
      end

      protected

      def_delegators :exception, :backtrace, :name, :message

      def formatted_exception
        {
          :backtrace => backtrace,
          :exception => name,
          :message => message
        }
      end

      def basic_process_action_event
        super.merge(
          :environment => filtered_environment,
          :session_data => request.session
        )
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appsignal-0.4.7 lib/appsignal/transaction/faulty_request_formatter.rb
appsignal-0.4.6 lib/appsignal/transaction/faulty_request_formatter.rb
appsignal-0.4.5 lib/appsignal/transaction/faulty_request_formatter.rb
appsignal-0.4.4 lib/appsignal/transaction/faulty_request_formatter.rb
appsignal-0.4.3 lib/appsignal/transaction/faulty_request_formatter.rb
appsignal-0.4.0 lib/appsignal/transaction/faulty_request_formatter.rb