AwsLambdaInstrumentor handles and re-raises handler function exception (#2245)

This commit is contained in:
Tammy Baylis
2024-02-22 09:16:34 -08:00
committed by GitHub
parent 2518a4ac07
commit efb327d4d7
4 changed files with 41 additions and 2 deletions

View File

@ -19,3 +19,7 @@ def handler(event, context):
def rest_api_handler(event, context):
return {"statusCode": 200, "body": "200 ok"}
def handler_exc(event, context):
raise Exception("500 internal server error")