Skip to content

Commit 5e033c6

Browse files
dreamorosiijemmy
andauthored
fix: Update examples/cdk/lib/example-function.Tracer.CaptureErrorDisabled.ts
Co-authored-by: ijemmy <ijemmy@users.noreply.github.com>
1 parent 4ac474d commit 5e033c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

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

0 commit comments

Comments
 (0)