atatus.set_transaction_name() function is used to set a name for a new transaction.
Python Agent API
Set transaction name in Python APM
Assign a name to the transaction using a simple function and find python errors in each transaction. Gain in-depth python application performance error information.