Skip to content

Commit 9c85063

Browse files
author
Michael Brewer
committed
chore: fix comments
1 parent f0f9309 commit 9c85063

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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);

examples/cdk/lib/example-function.Tracer.CaptureResponseDisabled.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_CAPTURE_RESPONSE = 'false';
88
const tracer = new Tracer({ serviceName: 'tracerCaptureResponseDisabledFn' });
99

10-
// In this example we are using the middleware pattern but you could use also the captureLambdaHandler decorator
10+
// In this example we are using the middleware pattern, but you could use also the captureLambdaHandler decorator
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)