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
Atatus.end_transaction()
Parameter
end_transaction()
does not accept any parameters.
Example
copy
def handle_request
Atatus.start_transaction("Name");
# TODO: your operations
Atatus.end_transaction();
end