I have some APIs that have try {...} catch {...}
within the async
function (Node.js Express). I want to set a different error level for each of the exceptions that occur in these APIs. Is there a way to send an error level along with Sentry.captureException(e)
from the catch block instead of repeating
Sentry.configureScope(function(scope) {
scope.setLevel(‘warning’);
});
(or withScope
) everytime I want to set a level for an exception?