diff --git a/print-service/infra/aws/lib/constructs/instrumented-function.ts b/print-service/infra/aws/lib/constructs/instrumented-function.ts index 24f8a036..e3bf7e46 100644 --- a/print-service/infra/aws/lib/constructs/instrumented-function.ts +++ b/print-service/infra/aws/lib/constructs/instrumented-function.ts @@ -71,6 +71,7 @@ export class InstrumentedLambdaFunction extends Construct { }, environment: { AWS_LAMBDA_EXEC_WRAPPER: "/opt/datadog_wrapper", + DD_SERVICE: props.sharedProps.serviceName, POWERTOOLS_SERVICE_NAME: props.sharedProps.serviceName, POWERTOOLS_LOG_LEVEL: (props.logLevel ?? props.sharedProps.environment === "prod") diff --git a/user-management/infra/aws/lib/constructs/instrumented-function.ts b/user-management/infra/aws/lib/constructs/instrumented-function.ts index 24f8a036..e3bf7e46 100644 --- a/user-management/infra/aws/lib/constructs/instrumented-function.ts +++ b/user-management/infra/aws/lib/constructs/instrumented-function.ts @@ -71,6 +71,7 @@ export class InstrumentedLambdaFunction extends Construct { }, environment: { AWS_LAMBDA_EXEC_WRAPPER: "/opt/datadog_wrapper", + DD_SERVICE: props.sharedProps.serviceName, POWERTOOLS_SERVICE_NAME: props.sharedProps.serviceName, POWERTOOLS_LOG_LEVEL: (props.logLevel ?? props.sharedProps.environment === "prod")