Sha256: 2701861f30829b4623ec652dd834880eb80ce6a70f1b116ed442c9e425cec265

Contents?: true

Size: 436 Bytes

Versions: 8

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

require "rack"

module Appsignal
  # @api private
  module Rack
    class GenericInstrumentation < AbstractMiddleware
      def initialize(app, options = {})
        options[:instrument_span_name] ||= "process_action.generic"
        super
      end

      def add_transaction_metadata_after(transaction, request)
        super
        transaction.set_action_if_nil("unknown")
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
appsignal-3.9.3-java lib/appsignal/rack/generic_instrumentation.rb
appsignal-3.9.3 lib/appsignal/rack/generic_instrumentation.rb
appsignal-3.9.2-java lib/appsignal/rack/generic_instrumentation.rb
appsignal-3.9.2 lib/appsignal/rack/generic_instrumentation.rb
appsignal-3.9.1-java lib/appsignal/rack/generic_instrumentation.rb
appsignal-3.9.1 lib/appsignal/rack/generic_instrumentation.rb
appsignal-3.9.0-java lib/appsignal/rack/generic_instrumentation.rb
appsignal-3.9.0 lib/appsignal/rack/generic_instrumentation.rb