Sha256: a90cd5331075edcfda883b69554a9f733f2e539608ae09b439fec2f0aae45bcf
Contents?: true
Size: 770 Bytes
Versions: 14
Compression:
Stored size: 770 Bytes
Contents
module Appsignal class PostProcessor attr_reader :transactions def initialize(transactions) @transactions = transactions end def post_processed_queue! transactions.map do |transaction| transaction.events.each do |event| Appsignal.post_processing_middleware.invoke(event) end transaction.to_hash end end def self.default_middleware Middleware::Chain.new do |chain| chain.add Appsignal::Middleware::DeleteBlanks chain.add Appsignal::Middleware::ActionViewSanitizer if defined?(ActiveRecord) require 'appsignal/middleware/active_record_sanitizer' chain.add Appsignal::Middleware::ActiveRecordSanitizer end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems