begin_transaction() function is used to start a new transaction. For supported frameworks, Atatus Python agent will automatically capture the transactions. This function can be used to instrument unsupported frameworks or background operations.

Compatibility

Compatible with all Python agent versions.

Syntax

Example

To call “begin_transaction”, you need to create Client instance with app name, and license key as follows
Example for sample custom transaction
After begin transaction, you have to set a transaction name using the atatus.set_transaction_name() function.

See also