File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ You can add default dimensions to your metrics by passing them as parameters in
277
277
}
278
278
}
279
279
280
- export const handlerClass = new Lambda();
280
+ const handlerClass = new Lambda();
281
281
export const handler = handlerClass.handler.bind(handlerClass); // (1)
282
282
```
283
283
@@ -375,7 +375,7 @@ The `logMetrics` decorator of the metrics utility can be used when your Lambda h
375
375
}
376
376
}
377
377
378
- export const handlerClass = new Lambda();
378
+ const handlerClass = new Lambda();
379
379
export const handler = handlerClass.handler.bind(handlerClass); // (1)
380
380
```
381
381
@@ -639,7 +639,7 @@ CloudWatch EMF uses the same dimensions across all your metrics. Use `singleMetr
639
639
}
640
640
}
641
641
642
- export const handlerClass = new Lambda();
642
+ const handlerClass = new Lambda();
643
643
export const handler = handlerClass.handler.bind(handlerClass); // (1)
644
644
```
645
645
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const DEFAULT_NAMESPACE = 'default_namespace';
58
58
* }
59
59
* }
60
60
*
61
- * export const handlerClass = new MyFunctionWithDecorator();
61
+ * const handlerClass = new MyFunctionWithDecorator();
62
62
* export const handler = handlerClass.handler.bind(handlerClass);
63
63
* ```
64
64
*
@@ -221,7 +221,7 @@ class Metrics extends Utility implements MetricsInterface {
221
221
* }
222
222
* }
223
223
*
224
- * export const handlerClass = new MyFunctionWithDecorator();
224
+ * const handlerClass = new MyFunctionWithDecorator();
225
225
* export const handler = handlerClass.handler.bind(handlerClass);
226
226
* ```
227
227
*
Original file line number Diff line number Diff line change @@ -42,5 +42,5 @@ class Lambda implements LambdaInterface {
42
42
}
43
43
}
44
44
45
- export const handlerClass = new Lambda ( ) ;
45
+ const handlerClass = new Lambda ( ) ;
46
46
export const handler = handlerClass . handler . bind ( handlerClass ) ;
You can’t perform that action at this time.
0 commit comments