atatus_begin_transaction() function is used to start a new transaction. Before using this function, you will have to manually end the current transaction using the atatus_end_transaction().

Compatibility

Compatible with all PHP agent versions.

Syntax

Parameter

atatus_begin_transaction() does not accept any parameters.

Example

In the following example, we begin a new transaction by ending the current one. However, you will have to set a custom transaction name using the atatus_set_transaction_name(“string”) function.

See also