atatus_set_transaction_name() function is used to set a name for a new transaction.

Compatibility

Compatible with all PHP agent versions.

Syntax

Parameter

Example

In the following example, we begin a new transaction after ending a transaction. You will have to set a transaction name for the new transaction.

See also