end_transaction function is used to end a transaction. This will be used along with "start_transaction".

Compatibility

  • Rails 4.2 and above.
  • Sinatra 1.0 and above.

Syntax

copy
icon/buttons/copy
Atatus.end_transaction()

Parameter

end_transaction() does not accept any parameters.

Example

copy
icon/buttons/copy
def handle_request

    Atatus.start_transaction("Name");
    # TODO: your operations
    Atatus.end_transaction();
end

See also