setTransactionName() function is used to set a name for a new transaction. Add dependency before starting with the api. pom.xml

Compatibility

Compatible with all Java agent versions.

Syntax

Parameter

Example