Gracefully log errors in an AWS Lambda


I currenlty have several NodeJS Lambda functions deployed on AWS.
I use to report errors using console.error as it allows me to not stop everything and treat other events in the same batch for example.

I’d like Sentry to alert me when something is wrong on my Lambdas, but without throwing an exception as it totally stops the execution.

What is the way you recommand for such cases ? I can use some Sentry SDK functions instead of calling console.error if needed.

Best regards