Transaction Error Reports

If you automatically instrument the tracer, transaction errors are reported if an exception is thrown. If you manually instrument the tracer, transaction error reports are optional and require manual configuration.

If your business logic defines the transaction as in error for any reason, you can customize the error report method to mark the transaction in error.

To create transaction error reports, use transaction.reportError().

The transaction.reportError() method reports one error per invocation. You can also use transaction.reportError() for any errorName or errorMessage:

transaction.reportError(errorName, errorMessage);