-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-lambda: AdotLambdaExecWrapper is missing an element for /opt/otel-sqs-handler #30310
Comments
Yes, @vchik795 , this enum -
PR from the community is welcome ! |
Thank you for creating the pull request, @mazyu36. Do you think it is going to be merged any time soon? |
@vchik795 |
…um (#30314) ### Issue # (if applicable) Closes #30310 . ### Reason for this change Missing enum option of `otel-sqs-handler` ### Description of changes Add `SQS_HANDLER` option ### Description of how you validated changes I verified that the correct values were set in the environment variables after deploying. Since only an enum option was added, I determined that adding unit tests or integration tests was unnecessary. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Comments on closed issues and PRs are hard for our team to see. |
Describe the feature
According to the OpenTelemetry documentation, the environment variable
AWS_LAMBDA_EXEC_WRAPPER
is supposed to be set to/opt/otel-sqs-handler
for SQS-triggered Lambda handlers. However, there is no corresponding element for it in the AdotLambdaExecWrapper enum.Use Case
When enabling ADOT instrumentation for an SQS-triggered Lambda function, there is no way to set the environment variable
AWS_LAMBDA_EXEC_WRAPPER
to/opt/otel-sqs-handler
. And using the available/opt/otel-handler
(REGULAR_HANDLER
) leads to issues like this one.Proposed Solution
Add a new element to the
AdotLambdaExecWrapper
enum that would support/opt/otel-sqs-handler
.Other Information
No response
Acknowledgements
CDK version used
2.139
Environment details (OS name and version, etc.)
N/A
The text was updated successfully, but these errors were encountered: