From 15ea9ce59ccacedd7e0312d1aa1c9e4f24e31b69 Mon Sep 17 00:00:00 2001 From: maz Date: Thu, 23 May 2024 08:13:57 +0900 Subject: [PATCH] chore: add otel-sqs-handler --- packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts b/packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts index a6bd12db8f5b8..d35575d8f7878 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts @@ -189,6 +189,11 @@ export enum AdotLambdaExecWrapper { * Wrapping python lambda handlers see https://aws-otel.github.io/docs/getting-started/lambda/lambda-python */ INSTRUMENT_HANDLER = '/opt/otel-instrument', + + /** + * Wrapping SQS-triggered function handlers (implementing RequestHandler) + */ + SQS_HANDLER = '/opt/otel-sqs-handler', } abstract class AdotLambdaLayerVersion {