transaction.end() function is used to end a transaction. This will be used along with “startTransaction”.
Add dependency before starting with the api.
pom.xml
Java Agent API
End transaction in Java
See how End transaction API works in Atatus Java agent and learn how can you use the End transaction API functions.