Sha256: 77fab9edde09adf49e83f18d9a78bc19c0f4a410f3645c8948f30041748bbcb7
Contents?: true
Size: 827 Bytes
Versions: 22
Compression:
Stored size: 827 Bytes
Contents
# frozen_string_literal: true Appsignal::Utils::StdoutAndLoggerMessage.warning \ "The constant Appsignal::Rack::StreamingListener has been deprecated. " \ "Please update the constant name to " \ "Appsignal::Rack::InstrumentationMiddleware." module Appsignal module Rack # Instrumentation middleware that tracks exceptions in streaming Rack # responses. # # @deprecated Use {InstrumentationMiddleware} instead. # @api private class StreamingListener < AbstractMiddleware def initialize(app, options = {}) options[:instrument_event_name] ||= "process_streaming_request.rack" super end def add_transaction_metadata_after(transaction, request) transaction.set_action_if_nil(request.env["appsignal.action"]) super end end end end
Version data entries
22 entries across 22 versions & 1 rubygems