Summary
In this chapter, we looked at how to instrument a serverless application from end to end. We began by examining the default metrics and logs generated by the Lambda function and then expanded our monitoring capabilities using Lambda Insights and looked at how Lambda Insights works.
Furthermore, we discussed the importance of Lambda Powertools and walked through an example, and discussed the step-by-step process of changes made to include them in your Node.js function in each area of metrics, logs, and traces and how they can enhance the operational experience.
As a part of the custom metrics, we have discussed how to set up important business metrics as part of Lambda Powertools metrics. Finally, we talked about the benefits of using X-Ray groups to filter and focus on the traces that are of most interest, making it easier to troubleshoot and resolve issues.
The overall Lambda observability could be summarized in a diagram, as follows:
Figure...