Skip to content

Commit

Permalink
chore(lambda): add otel-sqs-handler to the AdotLambdaLayerType en…
Browse files Browse the repository at this point in the history
…um (aws#30314)

### Issue # (if applicable)

Closes aws#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*
  • Loading branch information
mazyu36 committed Jul 26, 2024
1 parent 9d79c51 commit 79c7796
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 79c7796

Please sign in to comment.