Sha256: 488982cf072ae4d9cb3d5d0054a636798207d7de2ca4162fc8e092e557d56f81
Contents?: true
Size: 768 Bytes
Versions: 2
Compression:
Stored size: 768 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. # # @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appsignal-3.10.0-java | lib/appsignal/rack/streaming_listener.rb |
appsignal-3.10.0 | lib/appsignal/rack/streaming_listener.rb |