startTransaction() function is used to create a custom transaction. For supported frameworks, Atatus Java agent will automatically capture the transactions. This function can be used to instrument unsupported frameworks or background operations. Add dependency before starting with the api. pom.xml

Compatibility

Compatible with all Java agent versions.

Syntax

Example

To call “startTransaction”, you need to create transaction instance with atatus.
After start transaction, you have to set a transaction name using the transaction.setName() function.

See also