I would like to be able to see in Cloudwatch metrics (and Lambda metrics) errors for handle exception.
For the moment I see the errors only in Cloudwatch log group for handled errors.
Here is the code I use in my Lambda
def lambda_handler(event, context):
try:
raise Exception("My exeception")
except Exception as e:
logger.exception(str(e))
continue
And my logger is defined like this
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
With this configuration I can just see errors in my logs group, but not in the lamda/cloudwatch metrics