Posted On: May 10, 2023
You can now use AWS X-Ray to trace and analyze your Lambda functions enabled with Lambda SnapStart. You can use X-Ray traces to gain deeper visibility into your function’s performance and execution lifecycle, helping you identify errors and performance bottlenecks for your latency-sensitive Java applications built using SnapStart-enabled functions.
Lambda SnapStart makes it easier for you to build highly responsive and scalable Java applications using Lambda by delivering up to 10x faster function startup performance at no extra cost. SnapStart offers improved startup times—known as cold starts—by initializing the function code ahead of time, taking a snapshot of the initialized execution environment, and caching it. When the function is invoked and subsequently scales up, SnapStart restores new execution environments from the cached snapshot instead of initializing them from scratch, significantly improving startup latency. With X-Ray support for SnapStart-enabled functions, you can now see trace data about the restoration of the execution environment and execution of your function code. X-Ray also enables you to visualize the trace data, which helps you identify root cause of errors and performance issues in your function.
X-Ray support for Lambda SnapStart-enabled functions is available in all regions where Lambda SnapStart is available. For more information, see the AWS Region table.
You can enable X-Ray for Java-based SnapStart-enabled Lambda functions running on Amazon Corretto 11 or 17 using Lambda Console, AWS CLI, AWS Serverless Application Model (SAM), and AWS CloudFormation. To learn more about X-Ray for SnapStart-enabled functions, visit the Lambda Developer Guide or launch blog post.