Previously, you had to rely on custom logging and analysis to diagnose issues within your Lambda functions. Now, you can use AWS X-Ray to see metrics for Lambda service overhead, function initialization time, and function execution time. In addition, you can use the X-Ray SDKs to create your own trace segments, annotate your traces, and view trace segments for downstream calls made from your Lambda functions. Currently, you can use the X-Ray SDKs for Node.js and Java with Lambda. X-Ray support for Lambda is available in all regions where both X-Ray and Lambda are available.