From 20d85d6c655e4610d986af1058a2ce949d036425 Mon Sep 17 00:00:00 2001 From: branberry Date: Fri, 13 Oct 2023 11:54:35 -0500 Subject: [PATCH] Update cdk version and use latest adot --- cdk-infra/lib/constructs/api/webhook-api-construct.ts | 4 +++- cdk-infra/package-lock.json | 8 ++++---- cdk-infra/package.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cdk-infra/lib/constructs/api/webhook-api-construct.ts b/cdk-infra/lib/constructs/api/webhook-api-construct.ts index 7e655f202..44b1be20f 100644 --- a/cdk-infra/lib/constructs/api/webhook-api-construct.ts +++ b/cdk-infra/lib/constructs/api/webhook-api-construct.ts @@ -7,6 +7,7 @@ import { Code, Function, Runtime, + Tracing, } from 'aws-cdk-lib/aws-lambda'; import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; import { BundlingOptions, NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs'; @@ -79,9 +80,10 @@ export class WebhookApiConstruct extends Construct { bundling, environment, timeout, + tracing: Tracing.ACTIVE, adotInstrumentation: { execWrapper: AdotLambdaExecWrapper.REGULAR_HANDLER, - layerVersion: AdotLayerVersion.fromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.V1_7_0), + layerVersion: AdotLayerVersion.fromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.LATEST), }, }); diff --git a/cdk-infra/package-lock.json b/cdk-infra/package-lock.json index d2462491b..460aeff1f 100644 --- a/cdk-infra/package-lock.json +++ b/cdk-infra/package-lock.json @@ -21,7 +21,7 @@ "@swc/helpers": "^0.5.1", "@types/jest": "^29.4.0", "@types/node": "18.14.6", - "aws-cdk": "2.73.0", + "aws-cdk": "2.100.0", "esbuild": "^0.18.3", "jest": "^29.5.0", "regenerator-runtime": "^0.13.11", @@ -2823,9 +2823,9 @@ } }, "node_modules/aws-cdk": { - "version": "2.73.0", - "resolved": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.73.0.tgz", - "integrity": "sha512-4ZnY+OS83goCzv+1sCEpNTNiXWjY6KBzic2RNUObzpHjUskRSwUCtaeiv6OyZ55DZoP0tneAmWIBXHfixJ7iQw==", + "version": "2.100.0", + "resolved": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.100.0.tgz", + "integrity": "sha512-Gt/4wPuEiBYw2tl0+cN0EbLxxJEvltcJxSQAcVHgNbqvDj49KUJ/oCbZ335dF0gK/hrVVb70xfNiYbBSPOsmvg==", "dev": true, "bin": { "cdk": "bin/cdk" diff --git a/cdk-infra/package.json b/cdk-infra/package.json index 71416e9a9..9f95dba5b 100644 --- a/cdk-infra/package.json +++ b/cdk-infra/package.json @@ -21,7 +21,7 @@ "@swc/helpers": "^0.5.1", "@types/jest": "^29.4.0", "@types/node": "18.14.6", - "aws-cdk": "2.73.0", + "aws-cdk": "2.100.0", "esbuild": "^0.18.3", "jest": "^29.5.0", "regenerator-runtime": "^0.13.11",