Module: Appsignal::Integrations::WebmachinePlugin::FSM Private

Defined in:
lib/appsignal/integrations/webmachine.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#run_with_appsignalObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/appsignal/integrations/webmachine.rb', line 8

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