AWS Distro layer #512
gaspardbalthazar
started this conversation in
General
Replies: 1 comment 1 reply
-
This could be done. Wrapper scripts always have 'exec "${args[@]}"' as last command to execute the Lambda runtime process (see the example in the Lambda Doc.). So it is possible to chain multiple wrapper scripts together. I have not tried this, but here are the steps I would do:
#/bin/bash
exec [opentelemetry wrapper script] [LWA wrapper script] "${args[@]}"
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anyone tried using the aws-lambda-web-adapter layer on a Python and FastAPI Lambda function along with the AWS Distro for OpenTelemetry Lambda layer (https://aws-otel.github.io/docs/getting-started/lambda)? Both layers share the same environment variable AWS_LAMBDA_EXEC_WRAPPER.
In our tests, using a shell script that handles both the AWS Distro execution and the FastAPI project execution with aws-lambda-web-adapter, we observed that OpenTelemetry is executed correctly. However, the FastAPI web adapter doesn't seem to load properly.
We're looking for insights or experiences from anyone who might have successfully integrated these two layers in a Lambda function.
Beta Was this translation helpful? Give feedback.
All reactions