atatus_set_transaction_name() function is used to set a name for a new transaction.
PHP Agent API
Set transaction name in PHP APM
Change the default route name with our method provide in the PHP APM documentation and begin a new transaction to optimize PHP application performance..