Sha256: 4621a90e842cdbabe4e2aac369f06d4ecdf696eea259b3f95487f5800cd29152

Contents?: true

Size: 838 Bytes

Versions: 110

Compression:

Stored size: 838 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
          begin
            yield
          rescue Exception => e # rubocop:disable Lint/RescueException
            Appsignal.set_error(e)
            raise e
          end
        end
      end
    end
  end
end

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
appsignal-3.3.11-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.11 lib/appsignal/integrations/webmachine.rb
appsignal-3.4.0-java lib/appsignal/integrations/webmachine.rb
appsignal-3.4.0 lib/appsignal/integrations/webmachine.rb
appsignal-3.3.10-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.10 lib/appsignal/integrations/webmachine.rb
appsignal-3.3.9-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.9 lib/appsignal/integrations/webmachine.rb
appsignal-3.3.8-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.8 lib/appsignal/integrations/webmachine.rb
appsignal-3.3.7-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.7 lib/appsignal/integrations/webmachine.rb
appsignal-3.3.6-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.6 lib/appsignal/integrations/webmachine.rb
appsignal-3.3.5-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.5 lib/appsignal/integrations/webmachine.rb
appsignal-3.3.4-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.4 lib/appsignal/integrations/webmachine.rb
appsignal-3.3.3-java lib/appsignal/integrations/webmachine.rb
appsignal-3.3.3 lib/appsignal/integrations/webmachine.rb