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

Compatibility

Compatible with all Python agent versions.

Syntax

copy
icon/buttons/copy
atatus.set_transaction_name(transaction_name)

Parameter

Parameter Type Description
transaction_name String (Required) Transaction name.

Example

copy
icon/buttons/copy
def handle_request():

    atatus.set_transaction_name("custom_transaction_name")
    # your code here

See also