Package Exports
- @aws-lambda-powertools/tracer
- @aws-lambda-powertools/tracer/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-lambda-powertools/tracer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AWS Lambda Powertools for TypeScript
Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
You can use the library in both TypeScript and JavaScript code bases.
Documentation | npm | Roadmap | Examples | Serverless TypeScript Demo
Table of contents
Features
- Tracer - Utilities to trace Lambda function handlers, and both synchronous and asynchronous functions
- Logger - Structured logging made easier, and a middleware to enrich log items with key details of the Lambda context
- Metrics - Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
- Parameters (beta) - High-level functions to retrieve one or more parameters from AWS SSM, Secrets Manager, AppConfig, and DynamoDB
Getting started
Find the complete project's documentation here.
Installation
The AWS Lambda Powertools for TypeScript utilities follow a modular approach, similar to the official AWS SDK v3 for JavaScript.
Each TypeScript utility is installed as standalone NPM package.
Install all three core utilities at once with this single command:
npm install @aws-lambda-powertools/logger @aws-lambda-powertools/tracer @aws-lambda-powertools/metrics
Or refer to the installation guide of each utility:
π Installation guide for the Tracer utility
π Installation guide for the Logger utility
π Installation guide for the Metrics utility
π Installation guide for the Parameters utility
Examples
Serverless TypeScript Demo application
The Serverless TypeScript Demo shows how to use Lambda Powertools for TypeScript.
You can find instructions on how to deploy and load test this application in the repository.
Contribute
If you are interested in contributing to this project, please refer to our Contributing Guidelines.
Roadmap
The roadmap of Powertools is driven by customersβ demand.
Help us prioritize upcoming functionalities or utilities by upvoting existing RFCs and feature requests, or creating new ones, in this GitHub repository.
Connect
- AWS Lambda Powertools on Discord:
#typescript
- Invite link - Email: aws-lambda-powertools-feedback@amazon.com
Credits
Credits for the Lambda Powertools idea go to DAZN and their DAZN Lambda Powertools.
License
This library is licensed under the MIT-0 License. See the LICENSE file.