End Transaction

Ends a transaction created by a previous call to appdynamics_begin_transaction() or continued by appdynamics_continue_transaction().

Format

bool appdynamics_end_transaction()

Description

When paired with an appdynamics_continue_transaction() call, this call ends the transaction on the tier being continued but does not end any subsequent calls downstream from that tier that are part of the distributed transaction.

If the business transaction is invalid or if there were no previous appdynamics_begin_transaction() or appdynamics_continue_transaction() calls in the request/script, this function returns false and throws a warning message that is captured by the application and reported as an exception.

Your application is recommended to wrap appdynamics_begin_transaction() and handle possible exceptions so that they are not logged as application exceptions.