Skip to content

Commit 79c7796

Browse files
authored
chore(lambda): add otel-sqs-handler to the AdotLambdaLayerType enum (#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*
1 parent 9d79c51 commit 79c7796

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts

+5
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ export enum AdotLambdaExecWrapper {
189189
* Wrapping python lambda handlers see https://aws-otel.github.io/docs/getting-started/lambda/lambda-python
190190
*/
191191
INSTRUMENT_HANDLER = '/opt/otel-instrument',
192+
193+
/**
194+
* Wrapping SQS-triggered function handlers (implementing RequestHandler)
195+
*/
196+
SQS_HANDLER = '/opt/otel-sqs-handler',
192197
}
193198

194199
abstract class AdotLambdaLayerVersion {

0 commit comments

Comments
 (0)