You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* logger.info('This is an INFO log with some context');
66
66
* };
67
67
*
@@ -80,12 +80,9 @@ import type {
80
80
* const logger = new Logger();
81
81
*
82
82
* class Lambda implements LambdaInterface {
83
-
*
84
-
* // FYI: Decorator might not render properly in VSCode mouse over due to https://github.com/microsoft/TypeScript/issues/47679 and might show as *@logger* instead of `@logger.injectLambdaContext`
85
-
*
86
83
* // Decorate your handler class method
87
-
* @logger.injectLambdaContext()
88
-
* public async handler(_event: any, _context: any): Promise<void> {
84
+
* @logger.injectLambdaContext()
85
+
* public async handler(_event: unknown, _context: unknown): Promise<void> {
89
86
* logger.info('This is an INFO log with some context');
* // FYI: Decorator might not render properly in VSCode mouse over due to https://github.com/microsoft/TypeScript/issues/47679 and might show as *@metrics* instead of `@metrics.logMetrics`
@@ -73,11 +73,9 @@ import { type Segment, Subsegment } from 'aws-xray-sdk-core';
73
73
*
74
74
* const tracer = new Tracer({ serviceName: 'serverlessAirline' });
75
75
*
76
-
* // FYI: Decorator might not render properly in VSCode mouse over due to https://github.com/microsoft/TypeScript/issues/47679 and might show as *@tracer* instead of `@tracer.captureLambdaHandler`
77
-
*
78
76
* class Lambda implements LambdaInterface {
79
-
* @tracer.captureLambdaHandler()
80
-
* public handler(event: any, context: any) {
77
+
* @tracer.captureLambdaHandler()
78
+
* public handler(_event: unknown, _context: unknown) {
81
79
* ...
82
80
* }
83
81
* }
@@ -96,7 +94,7 @@ import { type Segment, Subsegment } from 'aws-xray-sdk-core';
96
94
*
97
95
* const tracer = new Tracer({ serviceName: 'serverlessAirline' });
0 commit comments