mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-31 22:23:12 +08:00
AwsLambdaInstrumentor handles and re-raises handler function exception (#2245)
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user