setTransactionName() function is used to set a name for a new transaction.
Add dependency before starting with the api.
pom.xml
Java Agent API
Set transaction name in Java
A function that helps you to set a name for every new transactions. Start monitoring your new Java transactions with Atatus and gain in-depth metrics.