Javascript errors
There are some cases where Plumbr is unable to capture Javascript errors automatically eg. when frontend frameworks like Vue or React capture the errors themselves and don’t propagate them further.
In these cases it is possible to report the error via API. The errors are added to the current transaction.
Example:
try {
if (window.PLUMBR) {
window.PLUMBR.sendError(err)
}
} catch (err) {}
Where err is either Javascript error object or a string with an error message.