Sha256: 7f1d44030bd3200d4ca39ea5ffc1bf80080a9b1ed1ae398ed22e94f8c854a015

Contents?: true

Size: 953 Bytes

Versions: 23

Compression:

Stored size: 953 Bytes

Contents

module Appsignal
  module Integrations
    # @api private
    module WebmachinePlugin
      module FSM
        def run_with_appsignal
          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
            run_without_appsignal
          end

          Appsignal::Transaction.complete_current!
        end

        private

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
appsignal-2.5.3-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.3 lib/appsignal/integrations/webmachine.rb
appsignal-2.5.3.alpha.2 lib/appsignal/integrations/webmachine.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.3.alpha.1 lib/appsignal/integrations/webmachine.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.2-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.2 lib/appsignal/integrations/webmachine.rb
appsignal-2.5.1-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.1 lib/appsignal/integrations/webmachine.rb
appsignal-2.5.1.beta.1-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.1.beta.1 lib/appsignal/integrations/webmachine.rb
appsignal-2.5.0-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.0 lib/appsignal/integrations/webmachine.rb
appsignal-2.5.0.beta.1-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.0.beta.1 lib/appsignal/integrations/webmachine.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/integrations/webmachine.rb
appsignal-2.5.0.alpha.1 lib/appsignal/integrations/webmachine.rb
appsignal-2.4.3 lib/appsignal/integrations/webmachine.rb
appsignal-2.4.2 lib/appsignal/integrations/webmachine.rb