AWS Lambda Powertools For TypeScript Now Generally Available

AWS-Lambda-Powertools-for-TypeScript-Now-Generally-Available

AWS Lambda Powertools supports the three most popular Lambda runtimes – Python, Java, and now Node.js, with the general availability release of AWS Lambda Powertools for TypeScript

Amazon recently announced the general availability (GA) of AWS Lambda Powertools TypeScript. The set of utilities for Node.js Lambda functions helps developers follow best practices for tracing, structured logging, and custom metrics.

AWS Lambda Powertools is an open-source library that provides a collection of utilities for AWS Lambda functions to make developers’ lives easier. The utility set focuses on implementing best practices such as structured logging, custom metrics, tracing, and more, as defined by the AWS Well-Architected Serverless Lens.

AWS Lambda Powertools supports the three most popular Lambda runtimes – Python, Java, and now Node.js, with the general availability release of AWS Lambda Powertools for TypeScript. The GA release is a follow-up of the beta release beginning of the year and receives the same features as the Python and Java versions in subsequent releases, as seen in the roadmap.

“AWS Lambda Powertools for TypeScript can help simplify, accelerate, and scale the adoption of serverless best practices within your team and across your organisation. The library implements best practices recommended as part of the AWS Well-Architected Framework without you needing to write much custom code,” said Sara Gerion, Senior Solutions Architect, AWS.

The GA release focuses on three observability features: distributed tracing (Tracer), structured logging (Logger), and asynchronous business and application metrics (Metrics) – each production is ready and provides the following benefits:

  • The Tracer utility adds custom annotations and metadata during function invocation, which are then sent to AWS X-Ray. Developers can use annotations to search for and filter traces based on business or application contextual information such as product ID or cold start.
  • The Logger utility adds contextual information to application logs. By structuring logs as JSON, developers can use Amazon CloudWatch Logs Insights to search for their structured data.
  • And finally, the Metrics utility makes it easier to create complex high-cardinality application data. When developers include structured data with their metrics, they can search for it and perform additional analysis.