Skip to content

Commit 417f420

Browse files
authored
docs(lambda): AWS Lambda extension SDK support (#2931)
* docs: AWS Lambda extension SDK support * docs: fix line wrap
1 parent 40ccc05 commit 417f420

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/sources/configure-client/aws-lambda.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ Configure the extension with the following environment variables:
6262

6363
### Integrate the Pyroscope SDK
6464

65+
The Pyroscope AWS Lambda extension is compatible with all existing Pyroscope SDKs. Here are some key considerations:
66+
- Initialize the SDK before setting up the AWS Lambda handler.
67+
- Ensure that the Pyroscope server address is configured to http://localhost:4040.
68+
69+
Note that the SDK packages are not automatically included in the extension layer. For Java, Python, Node.js, and Ruby, you must either include the SDK package in the function deployment package or add it as a Lambda layer. Refer to the detailed guide in the AWS Lambda documentation for your specific runtime for further instructions:
70+
- [Java](https://docs.aws.amazon.com/lambda/latest/dg/java-package.html#java-package-layers)
71+
- [Python](https://docs.aws.amazon.com/lambda/latest/dg/python-package.html#python-package-dependencies)
72+
- [Ruby](https://docs.aws.amazon.com/lambda/latest/dg/ruby-package.html#ruby-package-runtime-dependencies)
73+
- [Node.js](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-package.html#nodejs-package-dependencies)
74+
6575
For a Golang Lambda function, integrate the Pyroscope SDK as follows:
6676

6777
```go
@@ -78,7 +88,7 @@ func main() {
7888
}
7989
```
8090

81-
Replace `simple.golang.lambda` with your application name. The `ServerAddress` must be `http://localhost:4040`.
91+
Replace `simple.golang.lambda` with your application name.
8292

8393
## Use cases
8494

0 commit comments

Comments
 (0)