Skip to content

Commit d3d02d2

Browse files
authored
Fix Lambda Python Getting Started Order of steps + Wording (#186)
1 parent abe362b commit d3d02d2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/docs/getting-started/lambda/lambda-python.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ To enable the AWS Distro for OpenTelemetry in your Lambda function, you need to
4141
1. Open the Lambda function you intend to instrument in the AWS console.
4242
2. In the *Layers in Designer* section, choose *Add a layer*.
4343
3. Under *specify an ARN*, paste the layer ARN, and then choose *Add*.
44-
4. Add the environment variable `AWS_LAMBDA_EXEC_WRAPPER` and set it to `/opt/otel-instrument`.
45-
5. [Enable active tracing](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) for your AWS Lambda function.
44+
4. [Enable active tracing](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) for your AWS Lambda function.
45+
5. Add the environment variable `AWS_LAMBDA_EXEC_WRAPPER` and set it to `/opt/otel-instrument`.
4646

4747
Tips:
4848

4949
* By default, the layer is configured to export traces to AWS X-Ray.
50-
Make sure your Lambda role has the required AWS X-Ray permissions.
51-
For more on AWS X-Ray permissions for AWS Lambda, see the [AWS Lambda documentation](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html#services-xray-permissions).
50+
When you enable active tracing, Lambda will try to automatically add the necessary X-Ray permission to your Lambda role if they are missing.
51+
In the case it is unsuccessful, make sure your Lambda role has the required AWS X-Ray permissions.
52+
For more on AWS X-Ray permissions for AWS Lambda, see the [AWS Lambda documentation](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html#services-xray-permissions).
5253

5354
### Remove OpenTelemetry from your Lambda function
5455
To disable OpenTelemetry for your Lambda function, remove the Lambda layer,

0 commit comments

Comments
 (0)