Transaction boundary definition

If you monitor an application where Plumbr does not detect transactions at all, or transactions start and end not at the default integration points (ie. the start and end of http request processing), then it is possible to manually define transaction boundaries. This is done as follows:

try {
  Plumbr.startTransaction("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.