Sha256: e67db13a9fcbc97b50020c3ec32ca06378f065dd5a6378bc507d35b8648232cb

Contents?: true

Size: 800 Bytes

Versions: 78

Compression:

Stored size: 800 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    # @api private
    module WebmachineIntegration
      def run
        transaction = Appsignal::Transaction.create(
          SecureRandom.uuid,
          Appsignal::Transaction::HTTP_REQUEST,
          request,
          :params_method => :query
        )

        transaction.set_action_if_nil("#{resource.class.name}##{request.method}")

        Appsignal.instrument("process_action.webmachine") do
          super
        end

        Appsignal::Transaction.complete_current!
      end

      private

      def handle_exceptions
        super do
          yield
        rescue Exception => e # rubocop:disable Lint/RescueException
          Appsignal.set_error(e)
          raise e
        end
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
appsignal-3.9.3-java lib/appsignal/integrations/webmachine.rb
appsignal-3.9.3 lib/appsignal/integrations/webmachine.rb
appsignal-3.9.2-java lib/appsignal/integrations/webmachine.rb
appsignal-3.9.2 lib/appsignal/integrations/webmachine.rb
appsignal-3.9.1-java lib/appsignal/integrations/webmachine.rb
appsignal-3.9.1 lib/appsignal/integrations/webmachine.rb
appsignal-3.9.0-java lib/appsignal/integrations/webmachine.rb
appsignal-3.9.0 lib/appsignal/integrations/webmachine.rb
appsignal-3.8.1-java lib/appsignal/integrations/webmachine.rb
appsignal-3.8.1 lib/appsignal/integrations/webmachine.rb
appsignal-3.8.0-java lib/appsignal/integrations/webmachine.rb
appsignal-3.8.0 lib/appsignal/integrations/webmachine.rb
appsignal-3.7.6-java lib/appsignal/integrations/webmachine.rb
appsignal-3.7.6 lib/appsignal/integrations/webmachine.rb
appsignal-3.7.2-java lib/appsignal/integrations/webmachine.rb
appsignal-3.7.2 lib/appsignal/integrations/webmachine.rb
appsignal-3.7.1-java lib/appsignal/integrations/webmachine.rb
appsignal-3.7.1 lib/appsignal/integrations/webmachine.rb
appsignal-3.7.0-java lib/appsignal/integrations/webmachine.rb
appsignal-3.7.0 lib/appsignal/integrations/webmachine.rb