Maintained with ☕️ by
IcePanel logo

AWS Lambda now supports AWS X-Ray tracing for SnapStart-enabled functions

Share

Services

You can now use [AWS X-Ray](https://aws.amazon.com/xray/) to trace and analyze your Lambda functions enabled with [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html). 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](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.html) 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](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/). You can enable X-Ray for Java-based SnapStart-enabled Lambda functions running on [Amazon Corretto](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-monitoring.html#snapstart-xray) or [launch blog post](https://aws.amazon.com/blogs/compute/debugging-snapstart-enabled-lambda-functions-made-easy-with-aws-x-ray).