Skip to content

Commit 9b732a3

Browse files
committed
Merge branch 'fix/cdk_examples' of github.com:awslabs/aws-lambda-powertools-typescript into fix/cdk_examples
2 parents 9c2a418 + 13c6103 commit 9b732a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/cdk/lib/example-function.MyFunctionWithMiddy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const lambdaHandler = async (event: typeof Events.Custom.CustomEvent, context: C
1919
logger.addPersistentLogAttributes({
2020
testKey: 'testValue',
2121
});
22-
logger.debug('This is an DEBUG log'); // Won't show by default
22+
logger.debug('This is an DEBUG log'); // Won't show because we pass logLevel: 'INFO' in the constructor.
2323
logger.info('This is an INFO log');
2424
logger.warn('This is an WARN log');
2525
logger.error('This is an ERROR log');

examples/cdk/lib/example-function.Tracer.CaptureErrorDisabled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { captureLambdaHandler, Tracer } from '@aws-lambda-powertools/tracer';
77
process.env.POWERTOOLS_TRACER_ERROR_RESPONSE = 'false';
88
const tracer = new Tracer({ serviceName: 'tracerCaptureErrorDisabledFn' });
99

10-
// In this example we are using the middy middleware pattern but you can instrument your functions also with the captureLambdaHandler decorator & manual instrumentation
10+
// In this example we are using the Middy middleware pattern but you can instrument your functions also with the captureLambdaHandler decorator & manual instrumentation
1111
export const handler = middy(async (event: typeof Events.Custom.CustomEvent, context: Context) => {
1212
tracer.putAnnotation('awsRequestId', context.awsRequestId);
1313
tracer.putMetadata('eventPayload', event);

0 commit comments

Comments
 (0)