You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-7Lines changed: 32 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,22 @@
1
1
# AWS Lambda Powertools for TypeScript
2
2
3
-
A suite of TypeScript utilities for AWS Lambda functions to ease adopting best practices such as tracing, structured logging, custom metrics, and more. (AWS Lambda Powertools for [Python](https://github.com/awslabs/aws-lambda-powertools-python) and AWS Lambda Powertools for [Java](https://github.com/awslabs/aws-lambda-powertools-java) are also available).
3
+
A suite of utilities for AWS Lambda functions to ease the adoption of best practices such as tracing, structured logging, custom metrics, and more.
4
+
You can use the library in both TypeScript and JavaScript code bases.
5
+
AWS Lambda Powertools for [Python](https://github.com/awslabs/aws-lambda-powertools-python) and AWS Lambda Powertools for [Java](https://github.com/awslabs/aws-lambda-powertools-java) are also available).
@@ -31,6 +34,14 @@ Find the complete project's [documentation here](https://awslabs.github.io/aws-l
31
34
The AWS Lambda Powertools for TypeScript utilities follow a modular approach, similar to the official [AWS SDK v3 for JavaScript](https://github.com/aws/aws-sdk-js-v3).
32
35
Each TypeScript utility is installed as standalone NPM package.
33
36
37
+
Install all three core utilities at once with this single command:
* Credits for the Lambda Powertools idea go to [DAZN](https://github.com/getndazn) and their [DAZN Lambda Powertools](https://github.com/getndazn/dazn-lambda-powertools/).
58
+
The [Serverless TypeScript Demo](https://github.com/aws-samples/serverless-typescript-demo) shows how to use Lambda Powertools for TypeScript.
59
+
You can find instructions on how to deploy and load test this application in the [repository](https://github.com/aws-samples/serverless-typescript-demo).
60
+
61
+
## Contribute
62
+
63
+
If you are interested in contributing to this project, please refer to our [Contributing Guidelines](https://github.com/awslabs/aws-lambda-powertools-typescript/blob/main/CONTRIBUTING.md).
64
+
65
+
## Roadmap
66
+
67
+
The roadmap of Powertools is driven by customers’ demand.
68
+
Help us prioritize upcoming functionalities or utilities by [upvoting existing RFCs and feature requests](https://github.com/awslabs/aws-lambda-powertools-typescript/issues), or [creating new ones[(https://github.com/awslabs/aws-lambda-powertools-typescript/issues/new/choose), in this GitHub repository.
48
69
49
70
## Connect
50
71
51
72
***AWS Developers Slack**: `#lambda-powertools` - **[Invite, if you don't have an account](https://join.slack.com/t/awsdevelopers/shared_invite/zt-yryddays-C9fkWrmguDv0h2EEDzCqvw)**
Credits for the Lambda Powertools idea go to [DAZN](https://github.com/getndazn) and their [DAZN Lambda Powertools](https://github.com/getndazn/dazn-lambda-powertools/).
78
+
54
79
## License
55
80
56
81
This library is licensed under the MIT-0 License. See the LICENSE file.
Copy file name to clipboardExpand all lines: docs/index.md
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@ title: Homepage
3
3
description: AWS Lambda Powertools for TypeScript
4
4
---
5
5
6
-
AWS Lambda Powertools for TypeScript provides a suite of utilities for AWS Lambda functions running on the Node.js runtime, to ease the adoption of best practices such as tracing, structured logging, custom metrics, and more.
6
+
AWS Lambda Powertools for TypeScript provides a suite of utilities for AWS Lambda functions running on the Node.js runtime, to ease the adoption of best practices such as tracing, structured logging, custom metrics, and more.
7
+
You can use the library in both TypeScript and JavaScript code bases.
7
8
8
9
## Tenets
9
10
@@ -20,7 +21,7 @@ Core utilities such as Tracer, Logger, Metrics, and Event Handler will be availa
[Tracer](./core/tracer.md) | Utilities to trace Lambda function handlers, and both synchronous and asynchronous functions
24
+
[Tracer](./core/tracer.md) | Trace Lambda function handlers, and both synchronous and asynchronous functions
24
25
[Logger](./core/logger.md) | Structured logging made easier, and a middleware to enrich log items with key details of the Lambda context
25
26
[Metrics](./core/metrics.md) | Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
26
27
@@ -29,12 +30,28 @@ Core utilities such as Tracer, Logger, Metrics, and Event Handler will be availa
29
30
The AWS Lambda Powertools for TypeScript utilities (which from here will be referred as Powertools) follow a modular approach, similar to the official [AWS SDK v3 for JavaScript](https://github.com/aws/aws-sdk-js-v3).
30
31
Each TypeScript utility is installed as standalone NPM package.
31
32
33
+
Install all three core utilities at once with this single command:
Or refer to the installation guide of each utility:
40
+
32
41
[Installation guide for the **Tracer** utility](./core/tracer.md#getting-started)
33
42
34
43
[Installation guide for the **Logger** utility](./core/logger.md#getting-started)
35
44
36
45
[Installation guide for the **Metrics** utility](./core/metrics.md#getting-started)
37
46
47
+
## Instrumentation
48
+
49
+
You can instrument your code with Powertools in three different ways:
50
+
51
+
***Middy** middleware. It is the best choice if your existing code base relies on the [Middy](https://middy.js.org/docs/) middleware engine. Powertools offers compatible Middy middleware to make this integration seamless.
52
+
***Method decorator**. Use [TypeScript method decorators](https://www.typescriptlang.org/docs/handbook/decorators.html#method-decorators) if you prefer writing your business logic using TypeScript Classes. If you aren’t using Classes, this requires the most significant refactoring.
53
+
***Manually**. It provides the most granular control. It’s the most verbose approach, with the added benefit of no additional dependency and no refactoring to [TypeScript Classes](https://www.typescriptlang.org/docs/handbook/classes.html).
54
+
38
55
## Environment variables
39
56
40
57
!!! info
@@ -50,14 +67,18 @@ Each TypeScript utility is installed as standalone NPM package.
50
67
|**POWERTOOLS_TRACER_CAPTURE_HTTPS_REQUESTS**| Captures HTTP(s) requests as segments. |[Tracer](./core/tracer)|`true`|
The [Serverless TypeScript Demo](https://github.com/aws-samples/serverless-typescript-demo) shows how to use Lambda Powertools for TypeScript.
80
+
You can find instructions on how to deploy and load test this application in the [repository](https://github.com/aws-samples/serverless-typescript-demo).
81
+
61
82
## Credits
62
83
63
84
* Credits for the Lambda Powertools idea go to [DAZN](https://github.com/getndazn){target="_blank"} and their [DAZN Lambda Powertools](https://github.com/getndazn/dazn-lambda-powertools/){target="_blank"}.
A suite of TypeScript utilities for AWS Lambda functions to ease adopting best practices such as tracing, structured logging, custom metrics, and more. (AWS Lambda Powertools for [Python](https://github.com/awslabs/aws-lambda-powertools-python) and AWS Lambda Powertools for [Java](https://github.com/awslabs/aws-lambda-powertools-java) are also available).
3
+
A suite of utilities for AWS Lambda functions to ease the adoption of best practices such as tracing, structured logging, custom metrics, and more.
4
+
You can use the library in both TypeScript and JavaScript code bases.
5
+
AWS Lambda Powertools for [Python](https://github.com/awslabs/aws-lambda-powertools-python) and AWS Lambda Powertools for [Java](https://github.com/awslabs/aws-lambda-powertools-java) are also available).
***[Tracer](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/tracer/)** - Utilities to trace Lambda function handlers, and both synchronous and asynchronous functions
12
25
***[Logger](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/logger/)** - Structured logging made easier, and a middleware to enrich log items with key details of the Lambda context
13
26
***[Metrics](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/metrics/)** - Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
14
27
15
-
16
28
## Getting started
17
29
18
30
Find the complete project's [documentation here](https://awslabs.github.io/aws-lambda-powertools-typescript).
@@ -22,6 +34,14 @@ Find the complete project's [documentation here](https://awslabs.github.io/aws-l
22
34
The AWS Lambda Powertools for TypeScript utilities follow a modular approach, similar to the official [AWS SDK v3 for JavaScript](https://github.com/aws/aws-sdk-js-v3).
23
35
Each TypeScript utility is installed as standalone NPM package.
24
36
37
+
Install all three core utilities at once with this single command:
The [Serverless TypeScript Demo](https://github.com/aws-samples/serverless-typescript-demo) shows how to use Lambda Powertools for TypeScript.
59
+
You can find instructions on how to deploy and load test this application in the [repository](https://github.com/aws-samples/serverless-typescript-demo).
37
60
38
-
* Credits for the Lambda Powertools idea go to [DAZN](https://github.com/getndazn) and their [DAZN Lambda Powertools](https://github.com/getndazn/dazn-lambda-powertools/).
61
+
## Contribute
62
+
63
+
If you are interested in contributing to this project, please refer to our [Contributing Guidelines](https://github.com/awslabs/aws-lambda-powertools-typescript/blob/main/CONTRIBUTING.md).
64
+
65
+
## Roadmap
66
+
67
+
The roadmap of Powertools is driven by customers’ demand.
68
+
Help us prioritize upcoming functionalities or utilities by [upvoting existing RFCs and feature requests](https://github.com/awslabs/aws-lambda-powertools-typescript/issues), or [creating new ones[(https://github.com/awslabs/aws-lambda-powertools-typescript/issues/new/choose), in this GitHub repository.
39
69
40
70
## Connect
41
71
42
-
***AWS Developers Slack**: `#lambda-powertools`- **[Invite, if you don't have an account](https://join.slack.com/t/awsdevelopers/shared_invite/zt-yryddays-C9fkWrmguDv0h2EEDzCqvw)**
72
+
***AWS Developers Slack**: `#lambda-powertools`- **[Invite, if you don't have an account](https://join.slack.com/t/awsdevelopers/shared_invite/zt-yryddays-C9fkWrmguDv0h2EEDzCqvw)**
Credits for the Lambda Powertools idea go to [DAZN](https://github.com/getndazn) and their [DAZN Lambda Powertools](https://github.com/getndazn/dazn-lambda-powertools/).
78
+
45
79
## License
46
80
47
-
This library is licensed under the MIT-0 License. See the LICENSE file.
81
+
This library is licensed under the MIT-0 License. See the LICENSE file.
0 commit comments