Skip to content

Commit 2fb34dc

Browse files
authored
Update lambda-auto-instrument.md (open-telemetry#2945)
1 parent e5daaec commit 2fb34dc

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

content/en/docs/faas/lambda-auto-instrument.md

+23-11
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ first.
2828
{{< tabpane text=true >}}
2929
{{% tab Java %}}
3030

31-
The Lambda layer supports the Java 11 (Corretto) Lambda runtime. It does not
32-
support the Java 8 Lambda runtimes. For more information about supported Java
33-
versions, see the
31+
The Lambda layer supports the Java 8, 11, and 17 (Corretto) Lambda runtimes. For
32+
more information about supported Java versions, see the
3433
[OpenTelemetry Java documentation](/docs/instrumentation/java/).
3534

3635
**Note:** The Java Auto-instrumentation Agent is in the Lambda layer - Automatic
@@ -49,18 +48,23 @@ libraries/frameworks that are used by your application.
4948
To enable only specific instrumentations you can use the following environment
5049
variables:
5150

52-
* OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED - When set to false, disables auto-instrumentation in the Layer, requiring each instrumentation to be enabled individually.
53-
* OTEL_INSTRUMENTATION_[NAME]_ENABLED - Set to true to enable auto-instrumentation for a specific library or framework. [NAME] should be replaced by the instrumentation that you want to enable. The full list of available instrumentations can be found in this link.
51+
- `OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED` - When set to false, disables
52+
auto-instrumentation in the Layer, requiring each instrumentation to be
53+
enabled individually.
54+
- `OTEL_INSTRUMENTATION_[NAME]_ENABLED` - Set to true to enable
55+
auto-instrumentation for a specific library or framework. [NAME] should be
56+
replaced by the instrumentation that you want to enable. The full list of
57+
available instrumentations can be found
58+
[here](https://opentelemetry.io/docs/instrumentation/java/automatic/agent-config/#suppressing-specific-agent-instrumentation).
5459

5560
For example, to only enable auto-instrumentation for Lambda and the AWS SDK, you
5661
would have to set the following environment variables:
5762

58-
```bash
59-
Copy
60-
OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED=false
61-
OTEL_INSTRUMENTATION_AWS_LAMBDA_ENABLED=true
62-
OTEL_INSTRUMENTATION_AWS_SDK_ENABLED=true
63-
```
63+
```bash
64+
OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED=false
65+
OTEL_INSTRUMENTATION_AWS_LAMBDA_ENABLED=true
66+
OTEL_INSTRUMENTATION_AWS_SDK_ENABLED=true
67+
```
6468

6569
<!-- prettier-ignore -->
6670
{{% /tab %}}
@@ -83,6 +87,14 @@ and the package on [PyPi](https://pypi.org/project/opentelemetry-api/).
8387
{{% /tab %}}
8488
{{< /tabpane >}}
8589

90+
### Configure `AWS_LAMBDA_EXEC_WRAPPER`
91+
92+
Change the entry point of your application by setting
93+
`AWS_LAMBDA_EXEC_WRAPPER=/opt/otel-handler` for Node.js or Java, and
94+
`AWS_LAMBDA_EXEC_WRAPPER=/opt/otel-instrument` for Python. These wrapper scripts
95+
will invoke your Lambda application with the auto instrumentation package
96+
applied.
97+
8698
### Add the ARN of Instrumentation Lambda Layer
8799

88100
To enable the OTel auto-instrumentation in your Lambda function, you need to add

0 commit comments

Comments
 (0)