LocalStackAWS Lambda

High Lambda Duration indicates slow function execution

warning
performanceUpdated Mar 24, 2026
How to detect:

Lambda function's Duration metric increased during period of high client latency, indicating the function execution time is longer

Recommended action:

Review CloudWatch logs to find the section of code causing high latency. Lambda functions log START, END, and REPORT statements by default. Add custom log statements at each logical section of Lambda function code to get verbose logs and identify slow code sections.