Skip to content

Commit 5af705f

Browse files
committed
build: update to [email protected]
1 parent 44914e3 commit 5af705f

File tree

3 files changed

+11
-124
lines changed

3 files changed

+11
-124
lines changed

Diff for: docs/core/metrics.md

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ For a **complete list** of supported environment variables, refer to [this secti
6161

6262
#### Example using AWS Serverless Application Model (SAM)
6363

64+
The `Metrics` utility is instantiated outside of the Lambda handler. In doing this, the same instance can be used across multiple invocations inside the same execution environment. This allows `Metrics` to be aware of things like whether or not a given invocation had a cold start or not.
65+
6466
=== "handler.ts"
6567

6668
```typescript hl_lines="1 4"

Diff for: packages/metrics/package-lock.json

+8-123
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/metrics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"url": "https://github.com/awslabs/aws-lambda-powertools-typescript/issues"
8585
},
8686
"dependencies": {
87-
"@aws-lambda-powertools/commons": "^0.2.0",
87+
"@aws-lambda-powertools/commons": "^0.6.0",
8888
"@types/aws-lambda": "^8.10.72"
8989
}
9090
}

0 commit comments

Comments
 (0)