Skip to content

Commit 2daf9fa

Browse files
committed
docs(logger): fix typo in examples
1 parent 667ae6c commit 2daf9fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/snippets/logger/correlationIdDecorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const logger = new Logger({
88

99
class Lambda implements LambdaInterface {
1010
@logger.injectLambdaContext({
11-
ccorrelationIdPath: 'headers.my_request_id_header',
11+
correlationIdPath: 'headers.my_request_id_header',
1212
})
1313
public async handler(_event: unknown, _context: unknown): Promise<void> {
1414
logger.info('This is an INFO log with some context');

examples/snippets/logger/correlationIdPaths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const logger = new Logger({
1111

1212
class Lambda implements LambdaInterface {
1313
@logger.injectLambdaContext({
14-
ccorrelationIdPath: correlationPaths.API_GATEWAY_REST,
14+
correlationIdPath: correlationPaths.API_GATEWAY_REST,
1515
})
1616
public async handler(_event: unknown, _context: unknown): Promise<void> {
1717
logger.info('This is an INFO log with some context');

0 commit comments

Comments
 (0)