Transaction boundaries and status

If you monitor an application where Plumbr does not detect transaction, wish to customize the start or endpoints of the transaction or wish to set a specific status to a transaction then it is possible via our Agent API. You can define transaction boundaries and set the status of the transaction as follows:
try {
Plumbr.startService("Application Name", "Service name");
...
Plumbr.endTransaction();
} catch (Exception e) {
Plumbr.failTransaction();
}

NB! Pay attention to possible exceptional cases, so that the transaction would be
definitely ended. Forgetting to end the transaction will introduce a memory leak.